Skip to content

Commit a51cb39

Browse files
committed
fix comparison warning
1 parent ba5df1c commit a51cb39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

win32/ioutil.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ PW32IO php_win32_ioutil_normalization_result php_win32_ioutil_normalize_path_w(w
521521
return PHP_WIN32_IOUTIL_NORM_FAIL;
522522
}
523523

524-
while (NULL != (pos = wcschr(idx, PHP_WIN32_IOUTIL_FW_SLASHW)) && idx - *buf <= len) {
524+
while (NULL != (pos = wcschr(idx, PHP_WIN32_IOUTIL_FW_SLASHW)) && (size_t)(idx - *buf) <= len) {
525525
*pos = PHP_WIN32_IOUTIL_DEFAULT_SLASHW;
526526
idx = pos++;
527527
}

0 commit comments

Comments
 (0)