diff --git a/ciphers/uint128_t.hpp b/ciphers/uint128_t.hpp index bcd4f80d6..c11c881c1 100644 --- a/ciphers/uint128_t.hpp +++ b/ciphers/uint128_t.hpp @@ -439,9 +439,9 @@ class uint128_t { */ std::pair divide(const uint128_t &p) { if (*this < p) { // if this is less than divisor - return {uint128_t(0ULL), *this}; + return {uint128_t(0), *this}; } else if (*this == p) { // if this is equal to divisor - return {uint128_t(1ULL), uint128_t(0ULL)}; + return {uint128_t(1), uint128_t(0)}; } uint128_t tmp = p, tmp2 = *this; uint16_t left = tmp._lez() - _lez(); diff --git a/ciphers/uint256_t.hpp b/ciphers/uint256_t.hpp index 022c30591..d4afcb6af 100644 --- a/ciphers/uint256_t.hpp +++ b/ciphers/uint256_t.hpp @@ -433,9 +433,9 @@ class uint256_t { */ std::pair divide(const uint256_t &p) { if (*this < p) { // if this is less than divisor - return {uint256_t(0ULL), *this}; + return {uint256_t(0), *this}; } else if (*this == p) { // if this is equal to divisor - return {uint256_t(1ULL), uint256_t(0ULL)}; + return {uint256_t(1), uint256_t(0)}; } uint256_t tmp = p, tmp2 = *this; uint16_t left = tmp._lez() - _lez();