2
0
Эх сурвалжийг харах

response.c: fixed compiler warning on x32 platforms

Evgeny Grin (Karlson2k) 3 жил өмнө
parent
commit
a5504e3614

+ 2 - 0
src/microhttpd/response.c

@@ -1634,8 +1634,10 @@ MHD_create_response_from_buffer_with_free_callback_cls (size_t size,
 
 
   if ((NULL == buffer) && (size > 0))
   if ((NULL == buffer) && (size > 0))
     return NULL;
     return NULL;
+#if SIZEOF_SIZE_T >= SIZEOF_UINT64_T
   if (MHD_SIZE_UNKNOWN == size)
   if (MHD_SIZE_UNKNOWN == size)
     return NULL;
     return NULL;
+#endif /* SIZEOF_SIZE_T >= SIZEOF_UINT64_T */
   r = MHD_calloc_ (1, sizeof (struct MHD_Response));
   r = MHD_calloc_ (1, sizeof (struct MHD_Response));
   if (NULL == r)
   if (NULL == r)
     return NULL;
     return NULL;