com php-src: fix compiler warning: win32/ioutil.h
| From: | Anatol Belski | Date: | Sun, 24 Jul 2016 01:51:53 +0000 |
| Subject: | com php-src: fix compiler warning: win32/ioutil.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-93360@lists.php.net to get a copy of this message | ||
Commit: addb2e22b3faaa1d61e3ba99e3b7381b00063294
Author: Anatol Belski <ab@php.net> Sun, 24 Jul 2016 03:49:47 +0200
Parents: 4acde210fd75fa4daf9dee6a14f429d57f79b38f
Branches: PHP-7.1 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=addb2e22b3faaa1d61e3ba99e3b7381b00063294
Log:
fix compiler warning
Changed paths:
M win32/ioutil.h
Diff:
diff --git a/win32/ioutil.h b/win32/ioutil.h
index a97bbd7..2c96928 100644
--- a/win32/ioutil.h
+++ b/win32/ioutil.h
@@ -435,7 +435,7 @@ __forceinline static char *php_win32_ioutil_getcwd(char *buf, int len)
free(tmp_bufw);
SET_ERRNO_FROM_WIN32_CODE(err);
return buf;
- } else if (strlen(tmp_bufa) > len) {
+ } else if ((int)strlen(tmp_bufa) > len) {
free(tmp_bufa);
free(tmp_bufw);
SET_ERRNO_FROM_WIN32_CODE(ERROR_INSUFFICIENT_BUFFER);