diff --git a/include/mcl/ec.hpp b/include/mcl/ec.hpp index 17c1624..2533d20 100644 --- a/include/mcl/ec.hpp +++ b/include/mcl/ec.hpp @@ -663,7 +663,7 @@ public: return; } x.getStr(str, ioMode); - assert(str.size() == n && (str[n - 1] & 0x80) != 0); + assert(str.size() == n && (str[n - 1] & 0x80) == 0); if (y.isOdd()) { str[n - 1] |= 0x80; }