diff options
author | MITSUNARI Shigeo <herumi@nifty.com> | 2018-07-19 08:37:59 +0800 |
---|---|---|
committer | MITSUNARI Shigeo <herumi@nifty.com> | 2018-07-19 08:37:59 +0800 |
commit | 67d86637c0e12be7586f93e04d5d30b795ee1277 (patch) | |
tree | ff6a818731bb73aeb87eb1b4ec5fbafb184e89fc | |
parent | 543b4d70b43505a35caeb8e34aacff846414ee36 (diff) | |
download | tangerine-mcl-67d86637c0e12be7586f93e04d5d30b795ee1277.tar.gz tangerine-mcl-67d86637c0e12be7586f93e04d5d30b795ee1277.tar.zst tangerine-mcl-67d86637c0e12be7586f93e04d5d30b795ee1277.zip |
cast int64_t to int
-rw-r--r-- | sample/she_smpl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sample/she_smpl.cpp b/sample/she_smpl.cpp index c136d92..e01b9c1 100644 --- a/sample/she_smpl.cpp +++ b/sample/she_smpl.cpp @@ -49,7 +49,7 @@ void miniSample() c.add(t); // c += t } // decode it - int m = sec.dec(c); + int m = (int)sec.dec(c); // verify the value if (m == sum) { puts("ok"); @@ -88,7 +88,7 @@ void usePrimitiveCipherText() CipherTextGT cm; // size of CipherTextGT = N * 12 * 4 CipherTextGT::mul(cm, c1, d1); // cm = c1 * d1 cm.add(cm); // 2cm - int m = sec.dec(cm); + int m = (int)sec.dec(cm); int ok = (a1 + a2) * (b1 + b2) * 2; if (m == ok) { puts("ok"); |