diff options
author | MITSUNARI Shigeo <herumi@nifty.com> | 2018-07-26 20:28:39 +0800 |
---|---|---|
committer | MITSUNARI Shigeo <herumi@nifty.com> | 2018-07-26 20:28:39 +0800 |
commit | c060f5131de1d20bbf38511b1e6f897098d5106f (patch) | |
tree | 3bf1af7bc10745b6c963fc76201258e16f457bd2 | |
parent | f9c951fc2ccb64d1479fc1a0c4615302ce6bcb0f (diff) | |
download | tangerine-mcl-c060f5131de1d20bbf38511b1e6f897098d5106f.tar.gz tangerine-mcl-c060f5131de1d20bbf38511b1e6f897098d5106f.tar.zst tangerine-mcl-c060f5131de1d20bbf38511b1e6f897098d5106f.zip |
avoid ambigious type
-rw-r--r-- | test/mont_fp_test.cpp | 4 |
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; } |