From 4797680018534e497cde399ac0df31274b155b3e Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Thu, 4 Jul 2019 14:35:39 +0900 Subject: [PATCH] [she] fix compile error of she-wasm --- src/she_c_impl.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/she_c_impl.hpp b/src/she_c_impl.hpp index 8cfa6d0..8dd0a54 100644 --- a/src/she_c_impl.hpp +++ b/src/she_c_impl.hpp @@ -167,7 +167,7 @@ void sheGetPublicKey(shePublicKey *pub, const sheSecretKey *sec) cast(sec)->getPublicKey(*cast(pub)); } -static int setRangeForDLP(void (*f)(mclSize), mclSize hashSize) +static int wrapSetRangeForDLP(void f(size_t), mclSize hashSize) try { f(hashSize); @@ -178,19 +178,19 @@ static int setRangeForDLP(void (*f)(mclSize), mclSize hashSize) int sheSetRangeForDLP(mclSize hashSize) { - return setRangeForDLP(SHE::setRangeForDLP, hashSize); + return wrapSetRangeForDLP(SHE::setRangeForDLP, hashSize); } -int sheSetRangeForG1DLP(mclSize hashSize) +int sheSetRangeForG1DLPnoexcept(mclSize hashSize) { - return setRangeForDLP(SHE::setRangeForG1DLP, hashSize); + return wrapSetRangeForDLP(SHE::setRangeForG1DLP, hashSize); } int sheSetRangeForG2DLP(mclSize hashSize) { - return setRangeForDLP(SHE::setRangeForG2DLP, hashSize); + return wrapSetRangeForDLP(SHE::setRangeForG2DLP, hashSize); } int sheSetRangeForGTDLP(mclSize hashSize) { - return setRangeForDLP(SHE::setRangeForGTDLP, hashSize); + return wrapSetRangeForDLP(SHE::setRangeForGTDLP, hashSize); } void sheSetTryNum(mclSize tryNum)