diff --git a/ciphers/uint256_t.hpp b/ciphers/uint256_t.hpp index 72dea6dff..979543019 100644 --- a/ciphers/uint256_t.hpp +++ b/ciphers/uint256_t.hpp @@ -646,7 +646,7 @@ class uint256_t { template ::value, T>::type> inline uint256_t operator&(const T &p) { - return uint256_t(p & s); + return *this & uint256_t(p); } inline uint256_t operator&(const uint256_t &p) { @@ -669,7 +669,7 @@ class uint256_t { template ::value, T>::type> inline uint256_t operator|(const T &p) { - return uint256_t(this->s | p); + return *this | uint256_t(p); } inline uint256_t operator|(const uint256_t &p) {