aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2021-09-09 15:18:42 -0400
committerluigi1111 <luigi1111w@gmail.com>2021-09-09 15:18:42 -0400
commite72eedd1ce3cda931cce74a8265161918b0713ba (patch)
tree89e82906d3d59141db9cabb0d9b895c4b898efe6 /src
parentMerge pull request #7880 (diff)
parentringct: silence unused variable warning (diff)
downloadmonero-e72eedd1ce3cda931cce74a8265161918b0713ba.tar.xz
Merge pull request #7883
d749e0d ringct: silence unused variable warning (selsta)
Diffstat (limited to 'src')
-rw-r--r--src/ringct/multiexp.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ringct/multiexp.cc b/src/ringct/multiexp.cc
index 620f7d0dd..784c90a4e 100644
--- a/src/ringct/multiexp.cc
+++ b/src/ringct/multiexp.cc
@@ -449,7 +449,6 @@ rct::key straus(const std::vector<MultiexpData> &data, const std::shared_ptr<str
STEP = STEP ? STEP : 192;
MULTIEXP_PERF(PERF_TIMER_START_UNIT(setup, 1000000));
- static constexpr unsigned int mask = (1<<STRAUS_C)-1;
std::shared_ptr<straus_cached_data> local_cache = cache == NULL ? straus_init_cache(data) : cache;
ge_cached cached;
ge_p1p1 p1;
@@ -483,6 +482,7 @@ rct::key straus(const std::vector<MultiexpData> &data, const std::shared_ptr<str
memcpy(bytes33, data[j].scalar.bytes, 32);
bytes33[32] = 0;
bytes = bytes33;
+ static constexpr unsigned int mask = (1<<STRAUS_C)-1;
for (size_t i = 0; i < 256; ++i)
digits[j*256+i] = ((bytes[i>>3] | (bytes[(i>>3)+1]<<8)) >> (i&7)) & mask;
#else