python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / mtxclient / fix-compilation-with-olm-3.2.5.patch
blob02337d56f1ff1c1a63ee1f676b96deccb8804919
1 diff -Naur old/lib/crypto/client.cpp c5pf6ygk9v9rdwwr3dyd24wghflp0vmx-source/lib/crypto/client.cpp
2 --- old/lib/crypto/client.cpp 2021-10-22 19:31:52.159836190 +0300
3 +++ c5pf6ygk9v9rdwwr3dyd24wghflp0vmx-source/lib/crypto/client.cpp 2021-10-22 19:30:42.882010441 +0300
4 @@ -37,15 +37,15 @@
6 };
8 -OlmErrorCode
9 +mtx::crypto::OlmErrorCode
10 olm_exception::ec_from_string(std::string_view error)
12 for (size_t i = 0; i < olmErrorStrings.size(); i++) {
13 if (olmErrorStrings[i] == error)
14 - return static_cast<OlmErrorCode>(i);
15 + return static_cast<mtx::crypto::OlmErrorCode>(i);
18 - return OlmErrorCode::UNKNOWN_ERROR;
19 + return mtx::crypto::OlmErrorCode::UNKNOWN_ERROR;
22 void