diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-09-27 20:24:24 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-09-27 20:24:24 +0300 |
commit | 3cd82965442c3550a861d87e55d5ab664a579520 (patch) | |
tree | fb2f0b0c10b8c0d2a35b4276e896de364e865d59 /src/microhttpd | |
parent | 889b74b68ee8910e0fac7d8c7807b670d7462498 (diff) | |
download | libmicrohttpd-3cd82965442c3550a861d87e55d5ab664a579520.tar.gz libmicrohttpd-3cd82965442c3550a861d87e55d5ab664a579520.zip |
mhd_str: fixed compiler warning for compact code
Diffstat (limited to 'src/microhttpd')
-rw-r--r-- | src/microhttpd/mhd_str.c | 2 | ||||
-rw-r--r-- | src/microhttpd/mhd_str.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/microhttpd/mhd_str.c b/src/microhttpd/mhd_str.c index 6099f93c..efe31f12 100644 --- a/src/microhttpd/mhd_str.c +++ b/src/microhttpd/mhd_str.c | |||
@@ -1164,7 +1164,7 @@ MHD_str_to_uvalue_n_ (const char *str, | |||
1164 | void *out_val, | 1164 | void *out_val, |
1165 | size_t val_size, | 1165 | size_t val_size, |
1166 | uint64_t max_val, | 1166 | uint64_t max_val, |
1167 | int base) | 1167 | unsigned int base) |
1168 | { | 1168 | { |
1169 | size_t i; | 1169 | size_t i; |
1170 | uint64_t res; | 1170 | uint64_t res; |
diff --git a/src/microhttpd/mhd_str.h b/src/microhttpd/mhd_str.h index cd0af55f..e2964406 100644 --- a/src/microhttpd/mhd_str.h +++ b/src/microhttpd/mhd_str.h | |||
@@ -351,7 +351,7 @@ MHD_str_to_uvalue_n_ (const char *str, | |||
351 | void *out_val, | 351 | void *out_val, |
352 | size_t val_size, | 352 | size_t val_size, |
353 | uint64_t max_val, | 353 | uint64_t max_val, |
354 | int base); | 354 | unsigned int base); |
355 | 355 | ||
356 | #define MHD_str_to_uint64_(s,ov) MHD_str_to_uvalue_n_ ((s),SIZE_MAX,(ov), \ | 356 | #define MHD_str_to_uint64_(s,ov) MHD_str_to_uvalue_n_ ((s),SIZE_MAX,(ov), \ |
357 | sizeof(uint64_t), \ | 357 | sizeof(uint64_t), \ |