commit b4c86736249bb057b04ea9ee8808a12c62b41463
parent 85771d883b5038b16e0028942bcd0e25744b29b0
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Fri, 7 Aug 2015 07:38:04 +0000
connection.c: try_ready_normal_body(): fix VS compiler warning
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
@@ -358,7 +358,7 @@ try_ready_normal_body (struct MHD_Connection *connection)
ret = response->crc (response->crc_cls,
connection->response_write_position,
response->data,
- MHD_MIN (response->data_buffer_size,
+ (size_t)MHD_MIN ((uint64_t)response->data_buffer_size,
response->total_size -
connection->response_write_position));
if ( (((ssize_t) MHD_CONTENT_READER_END_OF_STREAM) == ret) ||