From 67d86637c0e12be7586f93e04d5d30b795ee1277 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Thu, 19 Jul 2018 09:37:59 +0900 Subject: [PATCH] cast int64_t to int --- sample/she_smpl.cpp | 4 ++-- 1 file 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");