com php-src: Fixed compiler warning (Sorry Anatol, but this one was killing me): win32/ioutil.h
| From: | Kalle Sommer Nielsen | Date: | Wed, 03 Aug 2016 04:16:48 +0000 |
| Subject: | com php-src: Fixed compiler warning (Sorry Anatol, but this one was killing me): win32/ioutil.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-93547@lists.php.net to get a copy of this message | ||
Commit: 1e02e528591544c3e85193531038fa7dcaf3c9ac
Author: Kalle Sommer Nielsen <kalle@php.net> Wed, 3 Aug 2016 06:16:48 +0200
Parents: aa821d8cad082634c554c6a5ed9233cdc24b9cff
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=1e02e528591544c3e85193531038fa7dcaf3c9ac
Log:
Fixed compiler warning (Sorry Anatol, but this one was killing me)
Changed paths:
M win32/ioutil.h
Diff:
diff --git a/win32/ioutil.h b/win32/ioutil.h
index ea40db4..8745c34 100644
--- a/win32/ioutil.h
+++ b/win32/ioutil.h
@@ -447,7 +447,7 @@ __forceinline static char *php_win32_ioutil_getcwd(char *buf, int len)
/* If buf was NULL, the result has to be freed outside here. */
buf = tmp_bufa;
} else {
- if (tmp_bufa_len + 1 > len) {
+ if (tmp_bufa_len + 1 > (size_t)len) {
free(tmp_bufa);
SET_ERRNO_FROM_WIN32_CODE(ERROR_INSUFFICIENT_BUFFER);
return NULL;