aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-12-26 16:37:13 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-12-27 16:20:19 +0300
commita5504e361443ae54a63dcf42b83b4648032f4e51 (patch)
treef621004395aa8ac85b70dd2f9940a7d49562c299
parenta0cb931f0c158f27ed297ad04e0a3c267adca271 (diff)
downloadlibmicrohttpd-a5504e361443ae54a63dcf42b83b4648032f4e51.tar.gz
libmicrohttpd-a5504e361443ae54a63dcf42b83b4648032f4e51.zip
response.c: fixed compiler warning on x32 platforms
-rw-r--r--src/microhttpd/response.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c
index b29f48f3..9cab223f 100644
--- a/src/microhttpd/response.c
+++ b/src/microhttpd/response.c
@@ -1634,8 +1634,10 @@ MHD_create_response_from_buffer_with_free_callback_cls (size_t size,
1634 1634
1635 if ((NULL == buffer) && (size > 0)) 1635 if ((NULL == buffer) && (size > 0))
1636 return NULL; 1636 return NULL;
1637#if SIZEOF_SIZE_T >= SIZEOF_UINT64_T
1637 if (MHD_SIZE_UNKNOWN == size) 1638 if (MHD_SIZE_UNKNOWN == size)
1638 return NULL; 1639 return NULL;
1640#endif /* SIZEOF_SIZE_T >= SIZEOF_UINT64_T */
1639 r = MHD_calloc_ (1, sizeof (struct MHD_Response)); 1641 r = MHD_calloc_ (1, sizeof (struct MHD_Response));
1640 if (NULL == r) 1642 if (NULL == r)
1641 return NULL; 1643 return NULL;