From b1ef09c6c4bcbb24caea6db3868f2e54d6086111 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Mon, 22 Jul 2019 19:46:32 +0900 Subject: [PATCH] fix GLV1::mul(0) --- include/mcl/gmp_util.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/include/mcl/gmp_util.hpp b/include/mcl/gmp_util.hpp index 3da87e4..384c052 100644 --- a/include/mcl/gmp_util.hpp +++ b/include/mcl/gmp_util.hpp @@ -651,6 +651,7 @@ void getNAFwidth(bool *pb, Vec& naf, mpz_class x, size_t w) naf[i] = -naf[i]; } } + *pb = true; } #ifndef CYBOZU_DONT_USE_EXCEPTION