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;