From 1e0b5b22d7c5e189b3cb839903abef0bb2430032 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Bylica?= Date: Tue, 8 Dec 2020 10:04:56 +0100 Subject: [PATCH] keccak: Use size_t for round index --- lib/keccak/keccakf1600.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/keccak/keccakf1600.c b/lib/keccak/keccakf1600.c index f95d79c8..c9dcccba 100644 --- a/lib/keccak/keccakf1600.c +++ b/lib/keccak/keccakf1600.c @@ -88,7 +88,7 @@ static inline ALWAYS_INLINE void keccakf1600_implementation(uint64_t state[25]) Aso = state[23]; Asu = state[24]; - for (int round = 0; round < 24; round += 2) + for (size_t round = 0; round < 24; round += 2) { /* Round (round + 0): Axx -> Exx */