From 878e348ff9b1e90a191c9e3e544edde64afc1b35 Mon Sep 17 00:00:00 2001 From: "Frank M. Kromann" Date: Fri, 20 Oct 2000 19:08:59 +0000 Subject: [PATCH] Adding type cast to remove compiler warning --- sapi/cgi/cgi_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index e1242b07fb..1949aeadae 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -130,7 +130,7 @@ static int sapi_cgi_read_post(char *buffer, uint count_bytes SLS_DC) { uint read_bytes=0, tmp_read_bytes; - count_bytes = MIN(count_bytes, SG(request_info).content_length-SG(read_post_bytes)); + count_bytes = MIN(count_bytes, (uint)SG(request_info).content_length-SG(read_post_bytes)); while (read_bytes < count_bytes) { tmp_read_bytes = read(0, buffer+read_bytes, count_bytes-read_bytes); if (tmp_read_bytes<=0) { -- 2.40.0