From: Anatol Belski Date: Sat, 13 Sep 2014 16:20:24 +0000 (+0200) Subject: fix condition X-Git-Tag: PRE_NATIVE_TLS_MERGE~150^2~18^2~15 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=be9408f71a0a646472da5f926bc6111a21a658cb;p=php fix condition comparsion of two unsigned --- diff --git a/ext/iconv/iconv.c b/ext/iconv/iconv.c index e1bf9deede..92ccb5e2cf 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; }