[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Try to convince coverity not to worryh about this loop



commit 7892aff3a8214f424b61f684003dba05ccdd3ba0
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Sun Jul 12 17:00:45 2015 -0400

    Try to convince coverity not to worryh about this loop
---
 src/ext/ed25519/donna/modm-donna-64bit.h |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/ext/ed25519/donna/modm-donna-64bit.h b/src/ext/ed25519/donna/modm-donna-64bit.h
index a47a38a..b22df2b 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;
 

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits