aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2018-07-26 20:28:39 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2018-07-26 20:28:39 +0800
commitc060f5131de1d20bbf38511b1e6f897098d5106f (patch)
tree3bf1af7bc10745b6c963fc76201258e16f457bd2
parentf9c951fc2ccb64d1479fc1a0c4615302ce6bcb0f (diff)
downloadtangerine-mcl-c060f5131de1d20bbf38511b1e6f897098d5106f.tar.gz
tangerine-mcl-c060f5131de1d20bbf38511b1e6f897098d5106f.tar.zst
tangerine-mcl-c060f5131de1d20bbf38511b1e6f897098d5106f.zip
avoid ambigious type
-rw-r--r--test/mont_fp_test.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/mont_fp_test.cpp b/test/mont_fp_test.cpp
index 5245510..582bae2 100644
--- a/test/mont_fp_test.cpp
+++ b/test/mont_fp_test.cpp
@@ -56,7 +56,9 @@ struct Montgomery {
#ifdef MCL_USE_VINT
z += p_ * q;
#else
- z += p_ * (mp_limb_t)q;
+ mpz_class t;
+ mcl::gmp::set(t, q);
+ z += p_ * t;
#endif
z >>= sizeof(Unit) * 8;
}