From 85fadb749cf670d9774e407eb9c9fb6569346fcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Sat, 14 Feb 2015 14:57:25 +0000 Subject: [PATCH] Make loop bound more obvious Helps static analyzers and does not decrease human readability. --- library/gcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/gcm.c b/library/gcm.c index 39cb189a40..522a8b1918 100644 --- a/library/gcm.c +++ b/library/gcm.c @@ -136,7 +136,7 @@ static int gcm_gen_table( gcm_context *ctx ) ctx->HH[i] = vh; } - for( i = 2; i < 16; i <<= 1 ) + for( i = 2; i <= 8; i *= 2 ) { uint64_t *HiL = ctx->HL + i, *HiH = ctx->HH + i; vh = *HiH;