From 2ac2be86d04cfeace4dd9383d458487e979a0cd2 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Wed, 6 Feb 2019 15:58:54 +0900 Subject: [PATCH] fix. clear mul_xi in init --- include/mcl/fp_tower.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/include/mcl/fp_tower.hpp b/include/mcl/fp_tower.hpp index 96a6edb..95722e2 100644 --- a/include/mcl/fp_tower.hpp +++ b/include/mcl/fp_tower.hpp @@ -386,6 +386,7 @@ public: // assert(Fp::maxSize <= 256); mcl::fp::Op& op = Fp::op_; assert(op.xi_a); + mul_xi = 0; #ifdef MCL_XBYAK_DIRECT_CALL add = fp::func_ptr_cast(op.fp2_addA_); if (add == 0) add = addC;