[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 03/04: Muted some compiler warnings
From: |
gnunet |
Subject: |
[libmicrohttpd] 03/04: Muted some compiler warnings |
Date: |
Tue, 30 Jan 2024 23:07:10 +0100 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit a88f3149a88b879eb21d28156d6dea08dbc93956
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Tue Jan 30 23:04:32 2024 +0100
Muted some compiler warnings
---
src/microhttpd/mhd_str.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/microhttpd/mhd_str.c b/src/microhttpd/mhd_str.c
index d01086ac..29c8f3f9 100644
--- a/src/microhttpd/mhd_str.c
+++ b/src/microhttpd/mhd_str.c
@@ -1575,7 +1575,7 @@ MHD_uint16_to_str (uint16_t val,
buf_size--;
if (1 == divisor)
return (size_t) (chr - buf);
- val %= divisor;
+ val = (uint16_t) (val % divisor);
divisor /= 10;
digit = (int) (val / divisor);
mhd_assert (digit < 10);
@@ -1733,8 +1733,8 @@ MHD_hex_to_bin (const char *hex,
const int l = toxdigitvalue (hex[r++]);
if ((0 > h) || (0 > l))
return 0;
- out[w++] = ( ((uint8_t) (((uint8_t) ((unsigned int) h)) << 4))
- | ((uint8_t) ((unsigned int) l)) );
+ out[w++] = (uint8_t) ( ((uint8_t) (((uint8_t) ((unsigned int) h)) << 4))
+ | ((uint8_t) ((unsigned int) l)) );
}
mhd_assert (len == r);
mhd_assert ((len + 1) / 2 == w);
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.