aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2018-06-04 21:49:43 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2018-06-04 21:49:43 +0800
commitecc6ad34f27b0eb449c2b8031607a808505b09bb (patch)
tree731fba06c3e1575fc2b36ab8ec0c8447fc1b0ed5 /src
parent5e7cb8a3bed479737aa3fa4c13adb1788ae26649 (diff)
downloadtangerine-mcl-ecc6ad34f27b0eb449c2b8031607a808505b09bb.tar.gz
tangerine-mcl-ecc6ad34f27b0eb449c2b8031607a808505b09bb.tar.zst
tangerine-mcl-ecc6ad34f27b0eb449c2b8031607a808505b09bb.zip
fix wrong return value
Diffstat (limited to 'src')
-rw-r--r--src/fp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fp.cpp b/src/fp.cpp
index 45eb175..6737aa2 100644
--- a/src/fp.cpp
+++ b/src/fp.cpp
@@ -476,7 +476,7 @@ bool Op::init(const mpz_class& _p, size_t maxBitSize, Mode mode, size_t mclMaxBi
case 17: setOp<17>(*this, mode); break; // 521 if 32-bit
#endif
default:
- return -5;
+ return false;
}
#ifdef MCL_USE_LLVM
if (primeMode == PM_NIST_P192) {