From: Frank M. Kromann Date: Fri, 20 Oct 2000 19:08:59 +0000 (+0000) Subject: Adding type cast to remove compiler warning X-Git-Tag: php-4.0.4RC3~603 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=878e348ff9b1e90a191c9e3e544edde64afc1b35;p=php Adding type cast to remove compiler warning --- 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) {