aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/math/numbertheory/monty_exp.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-06-29 12:48:56 -0400
committerJack Lloyd <[email protected]>2018-06-29 12:48:56 -0400
commitd04f788c86cb5df2d3353774a98a8ed9d8f179fc (patch)
tree85e564028b3fcb793ae64b1a1722bc5afb7025e9 /src/lib/math/numbertheory/monty_exp.cpp
parent39f05c81899ab778458d2a74ab58a549e4d765c0 (diff)
Fix some -Wshadow warnings
Diffstat (limited to 'src/lib/math/numbertheory/monty_exp.cpp')
-rw-r--r--src/lib/math/numbertheory/monty_exp.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/math/numbertheory/monty_exp.cpp b/src/lib/math/numbertheory/monty_exp.cpp
index 3451b1955..567492091 100644
--- a/src/lib/math/numbertheory/monty_exp.cpp
+++ b/src/lib/math/numbertheory/monty_exp.cpp
@@ -132,8 +132,7 @@ BigInt Montgomery_Exponentation_State::exponentiation_vartime(const BigInt& scal
if(exp_nibbles == 0)
return 1;
- const uint32_t nibble = scalar.get_substring(m_window_bits*(exp_nibbles-1), m_window_bits);
- Montgomery_Int x = m_g[nibble];
+ Montgomery_Int x = m_g[scalar.get_substring(m_window_bits*(exp_nibbles-1), m_window_bits)];
for(size_t i = exp_nibbles - 1; i > 0; --i)
{