From b4c86736249bb057b04ea9ee8808a12c62b41463 Mon Sep 17 00:00:00 2001 From: "Evgeny Grin (Karlson2k)" Date: Fri, 7 Aug 2015 07:38:04 +0000 Subject: [PATCH] connection.c: try_ready_normal_body(): fix VS compiler warning --- src/microhttpd/connection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c index 35dc55ca..472b4448 100644 --- 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) ||