From fab9f4c4533e6f3e91701ea0b1d3fbec4f045880 Mon Sep 17 00:00:00 2001 From: Stepland <10530295-Buggyroom@users.noreply.gitlab.com> Date: Tue, 27 Dec 2022 13:49:37 +0100 Subject: [PATCH] more fixes for special numeric types --- src/special_numeric_types.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/special_numeric_types.cpp b/src/special_numeric_types.cpp index 6ceb3e2..f2e20d2 100644 --- a/src/special_numeric_types.cpp +++ b/src/special_numeric_types.cpp @@ -165,7 +165,7 @@ std::uint64_t convert_to_u64(const mpz_class& z) { } /* We can only get unsigned longs from GMP (32 garanteed bits), so we have to split between low and high */ - const mpz_class low = z & INT64_C(0x00000000ffffffff); + const mpz_class low = z & 0x00000000ffffffffUL; const mpz_class high = z >> 32; const auto low_ul = low.get_ui(); const auto high_ul = high.get_ui();