aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2018-08-26 11:34:10 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2018-08-26 11:34:10 +0800
commit3c3179038c939e4f3c832797da0edbe587863f34 (patch)
tree1c5c11fc9bea80e1bb3985c0139e4c2bb79d11e4
parent6aa0bc086920516ef67abff1e9f0304a12467170 (diff)
downloadtangerine-mcl-3c3179038c939e4f3c832797da0edbe587863f34.tar.gz
tangerine-mcl-3c3179038c939e4f3c832797da0edbe587863f34.tar.zst
tangerine-mcl-3c3179038c939e4f3c832797da0edbe587863f34.zip
fix for Vint
-rw-r--r--include/mcl/ec.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mcl/ec.hpp b/include/mcl/ec.hpp
index ffad737..b3350b9 100644
--- a/include/mcl/ec.hpp
+++ b/include/mcl/ec.hpp
@@ -188,7 +188,7 @@ public:
*/
static void setOrder(const mpz_class& order)
{
- if (order) {
+ if (order != 0) {
verifyOrder_ = true;
order_ = order;
} else {