summaryrefslogtreecommitdiff
path: root/sapi/cgi/cgi_main.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2015-01-30 16:31:19 +0100
committerAnatol Belski <ab@php.net>2015-01-30 16:31:19 +0100
commit563e7822fd377706b1a9c764cd9adbfc274fd213 (patch)
treeb1452148ad1ee27725a04f7ea7ff674f00764dd1 /sapi/cgi/cgi_main.c
parent35c58552012de06a133259cc723a57886cd5607b (diff)
downloadphp-git-563e7822fd377706b1a9c764cd9adbfc274fd213.tar.gz
fix datatype mismatches, improve error checks
Diffstat (limited to 'sapi/cgi/cgi_main.c')
-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 4259ef1554..a0bba17f06 100644
--- a/sapi/cgi/cgi_main.c
+++ b/sapi/cgi/cgi_main.c
@@ -2414,7 +2414,7 @@ consult the installation file that came with this distribution, or visit \n\
break;
case ZEND_HANDLE_MAPPED:
if (file_handle.handle.stream.mmap.buf[0] == '#') {
- int i = 1;
+ size_t i = 1;
c = file_handle.handle.stream.mmap.buf[i++];
while (c != '\n' && c != '\r' && i < file_handle.handle.stream.mmap.len) {