From 846e50a76e90e917928735542d52198ff05a96ac Mon Sep 17 00:00:00 2001 From: Jordan Bancino Date: Sat, 13 Jan 2024 14:25:41 -0500 Subject: [PATCH] Fix compiler warnings in Sha1.c. These warnings are false positives emitted by GCC; there are no errors in the code. By changing the parameter type to a pointer, we prevent GCC from making faulty assumptions about the code. --- src/Sha/Sha1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Sha/Sha1.c b/src/Sha/Sha1.c index 9dd3bf4..edd250f 100644 --- a/src/Sha/Sha1.c +++ b/src/Sha/Sha1.c @@ -60,7 +60,7 @@ typedef struct } Sha1Context; static void -Sha1Transform(uint32_t state[5], const uint8_t buffer[64]) +Sha1Transform(uint32_t state[5], const uint8_t *buffer) { uint32_t a, b, c, d, e, i; uint8_t workspace[64];