From 001ffbe03e9ab875ddceef7c9f73b04b12c21ee0 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Tue, 18 Jul 2017 17:07:39 +0900 Subject: [PATCH] avoid alias of x --- include/mcl/vint.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/mcl/vint.hpp b/include/mcl/vint.hpp index ebbdbe9..24f306c 100644 --- a/include/mcl/vint.hpp +++ b/include/mcl/vint.hpp @@ -1287,7 +1287,7 @@ public: if (y.isNeg_) throw cybozu::Exception("Vint::pow:negative y") << y; const VintT xx = x; z = 1; - mcl::fp::powGeneric(z, x, &y.buf_[0], y.size(), mul, sqr, (void (*)(VintT&, const VintT&))0); + mcl::fp::powGeneric(z, xx, &y.buf_[0], y.size(), mul, sqr, (void (*)(VintT&, const VintT&))0); } static void pow(VintT& z, const VintT& x, int y) { @@ -1295,7 +1295,7 @@ public: const VintT xx = x; Unit absY = std::abs(y); z = 1; - mcl::fp::powGeneric(z, x, &absY, 1, mul, sqr, (void (*)(VintT&, const VintT&))0); + mcl::fp::powGeneric(z, xx, &absY, 1, mul, sqr, (void (*)(VintT&, const VintT&))0); } /* z = x ^ y mod m