From 58265a1e09373b3d62aac176c1b2ac3027717d7a Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Thu, 12 Sep 2019 10:54:15 +0900 Subject: [PATCH] remove warning of vc --- include/mcl/ec.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/mcl/ec.hpp b/include/mcl/ec.hpp index 35c8b6f..bb88c2e 100644 --- a/include/mcl/ec.hpp +++ b/include/mcl/ec.hpp @@ -1147,8 +1147,8 @@ public: /* L = log2(y), w = (L <= 32) ? 3 : (L <= 128) ? 4 : 5; */ - const int w = (yn == 1 && *y <= (1ull << 32)) ? 3 : (yn * sizeof(fp::Unit) > 16) ? 5 : 4; - const size_t tblSize = 1 << (w - 2); + const int w = (yn == 1 && *y <= (fp::Unit(1) << 32)) ? 3 : (yn * sizeof(fp::Unit) > 16) ? 5 : 4; + const size_t tblSize = size_t(1) << (w - 2); typedef mcl::FixedArray NafArray; NafArray naf; EcT tbl[maxTblSize];