From 6507a4bf38a9c8c07ce6be06a765fff4ff4fe6cd Mon Sep 17 00:00:00 2001 From: "Evgeny Grin (Karlson2k)" Date: Wed, 7 Apr 2021 21:52:19 +0300 Subject: [PATCH] response.c: fixed compiler warning on W32 --- src/microhttpd/response.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c index 14e036c8..c4b6c1e0 100644 --- a/src/microhttpd/response.c +++ b/src/microhttpd/response.c @@ -967,7 +967,7 @@ MHD_create_response_from_iovec (const struct MHD_IoVec *iov, #if defined(MHD_WINSOCK_SOCKETS) && defined(_WIN64) while (ULONG_MAX < element_size) { - iov_copy[i_cp].iov_base = buf; + iov_copy[i_cp].iov_base = (char *) buf; iov_copy[i_cp].iov_len = ULONG_MAX; buf += ULONG_MAX; element_size -= ULONG_MAX;