aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/sha1.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/sha1.c')
-rw-r--r--src/microhttpd/sha1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/microhttpd/sha1.c b/src/microhttpd/sha1.c
index 2ed84208..5d4a5b93 100644
--- a/src/microhttpd/sha1.c
+++ b/src/microhttpd/sha1.c
@@ -109,7 +109,7 @@ sha1_transform (uint32_t H[_SHA1_DIGEST_LENGTH],
109 _MHD_GET_32BIT_BE (((const uint8_t*) (buf)) + (t) * SHA1_BYTES_IN_WORD) 109 _MHD_GET_32BIT_BE (((const uint8_t*) (buf)) + (t) * SHA1_BYTES_IN_WORD)
110 110
111#ifndef _MHD_GET_32BIT_BE_UNALIGNED 111#ifndef _MHD_GET_32BIT_BE_UNALIGNED
112 if (0 != ((size_t) data % _MHD_UINT32_ALIGN)) 112 if (0 != (((uintptr_t) data) % _MHD_UINT32_ALIGN))
113 { 113 {
114 /* Copy the unaligned input data to the aligned buffer */ 114 /* Copy the unaligned input data to the aligned buffer */
115 memcpy (W, data, SHA1_BLOCK_SIZE); 115 memcpy (W, data, SHA1_BLOCK_SIZE);