From 5e02eafe9e5059a8f37e5690566c2ee8b70559e8 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Mon, 7 Oct 2019 15:01:13 +0900 Subject: [PATCH] fix for 32-bit env --- include/mcl/ec.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mcl/ec.hpp b/include/mcl/ec.hpp index 1e6172e..b598db6 100644 --- a/include/mcl/ec.hpp +++ b/include/mcl/ec.hpp @@ -1151,7 +1151,7 @@ public: /* L = log2(y), w = (L <= 32) ? 3 : (L <= 128) ? 4 : 5; */ - const int w = (yn == 1 && *y <= (fp::Unit(1) << 32)) ? 3 : (yn * sizeof(fp::Unit) > 16) ? 5 : 4; + const int w = (yn == 1 && *y <= (1ull << 32)) ? 3 : (yn * sizeof(fp::Unit) > 16) ? 5 : 4; const size_t tblSize = size_t(1) << (w - 2); typedef mcl::FixedArray NafArray; NafArray naf;