commit | 418f85957930e0d4e48b93abe73f0f9097dce50f | [log] [tgz] |
---|---|---|
author | Dave Rodgman <dave.rodgman@arm.com> | Tue Feb 13 19:22:28 2024 +0000 |
committer | Dave Rodgman <dave.rodgman@arm.com> | Tue Feb 13 19:43:49 2024 +0000 |
tree | d545616852d65d08f4fc9e5cd67ee483cbdd6bb8 | |
parent | cfb126f1baa05c204e7cc5f378f9fdf2c295711b [diff] [blame] |
fix cast warning Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
diff --git a/library/sha3.c b/library/sha3.c index 9b22cfa..6b14a84 100644 --- a/library/sha3.c +++ b/library/sha3.c
@@ -85,7 +85,7 @@ for (i = 1; i < 25; i += 4) { uint32_t r = rho[(i - 1) >> 2]; for (int j = i; j < i + 4; j++) { - uint8_t r8 = r >> 24; + uint8_t r8 = (uint8_t) (r >> 24); r <<= 8; s[j] = ROTR64(s[j], r8); }