diff options
author | MITSUNARI Shigeo <herumi@nifty.com> | 2018-06-04 21:49:43 +0800 |
---|---|---|
committer | MITSUNARI Shigeo <herumi@nifty.com> | 2018-06-04 21:49:43 +0800 |
commit | ecc6ad34f27b0eb449c2b8031607a808505b09bb (patch) | |
tree | 731fba06c3e1575fc2b36ab8ec0c8447fc1b0ed5 /src | |
parent | 5e7cb8a3bed479737aa3fa4c13adb1788ae26649 (diff) | |
download | tangerine-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.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |