com php-src: fix condition: ext/iconv/iconv.c
| From: | Anatol Belski | Date: | Sat, 13 Sep 2014 21:21:43 +0000 |
| Subject: | com php-src: fix condition: ext/iconv/iconv.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-81554@lists.php.net to get a copy of this message | ||
Commit: be9408f71a0a646472da5f926bc6111a21a658cb
Author: Anatol Belski <ab@php.net> Sat, 13 Sep 2014 18:20:24 +0200
Parents: d6bf1117a6d21ec04ce1400bed2293129369b71b
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=be9408f71a0a646472da5f926bc6111a21a658cb
Log:
fix condition
comparsion of two unsigned
Changed paths:
M ext/iconv/iconv.c
Diff:
diff --git a/ext/iconv/iconv.c b/ext/iconv/iconv.c
index e1bf9de..92ccb5e 100644
--- a/ext/iconv/iconv.c
+++ b/ext/iconv/iconv.c
@@ -2761,7 +2761,7 @@ static int php_iconv_stream_filter_append_bucket(
prev_ocnt = ocnt;
}
- if (out_buf_size - ocnt > 0) {
+ if (out_buf_size > ocnt) {
if (NULL == (new_bucket = php_stream_bucket_new(stream, out_buf, (out_buf_size - ocnt), 1,
persistent TSRMLS_CC))) {
goto out_failure;
}