From 6f237473e97bfca3d5dbc2580ee1772c2ebae93a Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Sun, 9 Apr 2017 13:17:18 +0900 Subject: [PATCH] fix assert --- 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 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; }