Skip to content

Commit

Permalink
fix comparison warning
Browse files Browse the repository at this point in the history
  • Loading branch information
weltling committed Jul 9, 2017
1 parent ba5df1c commit a51cb39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion win32/ioutil.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
}
Expand Down

0 comments on commit a51cb39

Please sign in to comment.