diff --git a/src/math/numbertheory/powm_fw.cpp b/src/math/numbertheory/powm_fw.cpp index 8c6d7b65d3f..02dc0863589 100644 --- a/src/math/numbertheory/powm_fw.cpp +++ b/src/math/numbertheory/powm_fw.cpp @@ -31,7 +31,7 @@ void Fixed_Window_Exponentiator::set_base(const BigInt& base) g[1] = base; for(size_t i = 2; i != g.size(); ++i) - g[i] = reducer.multiply(g[i-1], g[0]); + g[i] = reducer.multiply(g[i-1], g[1]); } /*