diff --git a/src/cpp/ripple/uint256.h b/src/cpp/ripple/uint256.h index 89d718f7c0..2937be12ac 100644 --- a/src/cpp/ripple/uint256.h +++ b/src/cpp/ripple/uint256.h @@ -206,12 +206,12 @@ public: friend inline bool operator==(const base_uint& a, const base_uint& b) { - return !compare(a, b); + return memcmp(a.pn, b.pn, sizeof(a.pn)) == 0; } friend inline bool operator!=(const base_uint& a, const base_uint& b) { - return !!compare(a, b); + return memcmp(a.pn, b.pn, sizeof(a.pn)) != 0; } std::string GetHex() const