1
0
Fork 0
forked from lthn/blockchain

fixing gcc errors while trying not to screw up msvc compilation at the same time 2 (wip)

This commit is contained in:
sowle 2023-04-08 22:38:50 +02:00
parent 3abf473c8e
commit 382f6ab574
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC

View file

@ -69,7 +69,7 @@ namespace crypto
#endif
const size_t m = std::max(1ull, constexpr_ceil_log_n(ring_size, n));
const size_t m = std::max(static_cast<uint64_t>(1), constexpr_ceil_log_n(ring_size, n));
const size_t N = constexpr_pow(m, n);
const size_t mn = m * n;
@ -232,7 +232,7 @@ namespace crypto
size_t ring_size = ring.size();
CHECK_AND_FAIL_WITH_ERROR_IF_FALSE(ring_size > 0, 0);
const size_t m = std::max(1ull, constexpr_ceil_log_n(ring_size, n));
const size_t m = std::max(static_cast<uint64_t>(1), constexpr_ceil_log_n(ring_size, n));
const size_t N = constexpr_pow(m, n);
const size_t mn = m * n;