]> granicus.if.org Git - php/commitdiff
Adding type cast to remove compiler warning
authorFrank M. Kromann <fmk@php.net>
Fri, 20 Oct 2000 19:08:59 +0000 (19:08 +0000)
committerFrank M. Kromann <fmk@php.net>
Fri, 20 Oct 2000 19:08:59 +0000 (19:08 +0000)
sapi/cgi/cgi_main.c

index e1242b07fbb29e5c462eefcc4d3c36d93d0ad863..1949aeadaee49258a6f8eacec41998a4c21c40be 100644 (file)
@@ -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) {