summaryrefslogtreecommitdiff
path: root/src/ext/ed25519
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-07-12 17:00:45 -0400
committerNick Mathewson <nickm@torproject.org>2015-07-12 17:00:45 -0400
commit7892aff3a8214f424b61f684003dba05ccdd3ba0 (patch)
treee12ce4a799c95a584c3e546a42624443e450537a /src/ext/ed25519
parent920c63877cece72ba02e54234567a1e76dd14b9b (diff)
downloadtor-7892aff3a8214f424b61f684003dba05ccdd3ba0.tar.gz
tor-7892aff3a8214f424b61f684003dba05ccdd3ba0.zip
Try to convince coverity not to worryh about this loop
Diffstat (limited to 'src/ext/ed25519')
-rw-r--r--src/ext/ed25519/donna/modm-donna-64bit.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ext/ed25519/donna/modm-donna-64bit.h b/src/ext/ed25519/donna/modm-donna-64bit.h
index a47a38a42d..b22df2be75 100644
--- a/src/ext/ed25519/donna/modm-donna-64bit.h
+++ b/src/ext/ed25519/donna/modm-donna-64bit.h
@@ -240,7 +240,8 @@ contract256_window4_modm(signed char r[64], const bignum256modm in) {
static void
contract256_slidingwindow_modm(signed char r[256], const bignum256modm s, int windowsize) {
int i,j,k,b;
- int m = (1 << (windowsize - 1)) - 1, soplen = 256;
+ int m = (1 << (windowsize - 1)) - 1;
+ const int soplen = 256;
signed char *bits = r;
bignum256modm_element_t v;