summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank M. Kromann <fmk@php.net>2000-10-20 19:08:59 +0000
committerFrank M. Kromann <fmk@php.net>2000-10-20 19:08:59 +0000
commit878e348ff9b1e90a191c9e3e544edde64afc1b35 (patch)
tree9ebd620e928ec87bfa27086071a66166bea7c364
parentdadb140e2f38a02332179285aaa636c48b2bca12 (diff)
downloadphp-git-878e348ff9b1e90a191c9e3e544edde64afc1b35.tar.gz
Adding type cast to remove compiler warning
-rw-r--r--sapi/cgi/cgi_main.c2
1 files changed, 1 insertions, 1 deletions
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) {