libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit fdc7a08c4feff969d6757a834d8c109442b9ca5d
parent 97707d77b7ed96b9c838afde37ae97e54bfcada1
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Tue, 12 Sep 2023 11:54:10 +0300

mhd_str: removed some over-casting

Diffstat:
Msrc/microhttpd/mhd_str.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/microhttpd/mhd_str.c b/src/microhttpd/mhd_str.c @@ -2377,7 +2377,7 @@ MHD_base64_to_bin_n (const char *base64, out[j + 1] = (uint8_t) (((uint8_t) (((uint8_t) v2) << 4)) | ((uint8_t) (((uint8_t) v3) >> 2))); out[j + 2] = (uint8_t) (((uint8_t) (((uint8_t) v3) << 6)) - | ((uint8_t) (((uint8_t) v4)))); + | ((uint8_t) v4)); } j += 3; } @@ -2419,7 +2419,7 @@ MHD_base64_to_bin_n (const char *base64, if (j >= bin_size) return 0; /* Not enough space */ out[j++] = (uint8_t) (((uint8_t) (((uint8_t) v3) << 6)) - | ((uint8_t) (((uint8_t) v4)))); + | ((uint8_t) v4)); } return j; #if MHD_BASE64_FUNC_VERSION >= 2