From 3423988fa04433b6e9993279c6f942d821821b88 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Tue, 16 Feb 2021 14:48:27 +0900 Subject: [PATCH] use no-throw-version --- include/mcl/bn.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/mcl/bn.hpp b/include/mcl/bn.hpp index 59f2407..0c514de 100644 --- a/include/mcl/bn.hpp +++ b/include/mcl/bn.hpp @@ -889,7 +889,8 @@ struct Param { *pb = true; return; #endif - Fp2::init(); + Fp2::init(pb); + if (!*pb) return; const Fp2 xi(cp.xi_a, 1); g2 = Fp2::get_gTbl()[0]; g3 = Fp2::get_gTbl()[3];