com php-src: fix comparison warning: win32/ioutil.c

From: Date: Sun, 09 Jul 2017 14:28:17 +0000
Subject: com php-src: fix comparison warning: win32/ioutil.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-98470@lists.php.net to get a copy of this message
Commit: a51cb393b1accc29200e8f57ef867a6a47b2564f Author: Anatol Belski <ab@php.net> Sun, 9 Jul 2017 16:28:17 +0200 Parents: ba5df1c68202486a4043d44e11e132656789bae3 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a51cb393b1accc29200e8f57ef867a6a47b2564f Log: fix comparison warning Changed paths: M win32/ioutil.c Diff: diff --git a/win32/ioutil.c b/win32/ioutil.c index a3f8f25..bd2f16f 100644 --- a/win32/ioutil.c +++ b/win32/ioutil.c @@ -521,7 +521,7 @@ PW32IO php_win32_ioutil_normalization_result php_win32_ioutil_normalize_path_w(w return PHP_WIN32_IOUTIL_NORM_FAIL; } - while (NULL != (pos = wcschr(idx, PHP_WIN32_IOUTIL_FW_SLASHW)) && idx - *buf <= len) { + while (NULL != (pos = wcschr(idx, PHP_WIN32_IOUTIL_FW_SLASHW)) && (size_t)(idx - *buf) <= len) { *pos = PHP_WIN32_IOUTIL_DEFAULT_SLASHW; idx = pos++; }

« previous php.cvs (#98470) next »