From: Marcus Boerger Date: Tue, 28 Feb 2006 02:22:57 +0000 (+0000) Subject: - Fix warning X-Git-Tag: php-5.1.3RC1~55 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c4b81d87204276712c49591441314dad9222d27b;p=php - Fix warning --- diff --git a/ext/iconv/iconv.c b/ext/iconv/iconv.c index af8e83eeec..4c78ac022f 100644 --- a/ext/iconv/iconv.c +++ b/ext/iconv/iconv.c @@ -583,7 +583,7 @@ static php_iconv_err_t _php_iconv_substr(smart_str *pretval, size_t out_left; unsigned int cnt; - unsigned int total_len; + int total_len; err = _php_iconv_strlen(&total_len, str, nbytes, enc); if (err != PHP_ICONV_ERR_SUCCESS) { diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 2a5d176446..65525a2c70 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -554,7 +554,7 @@ static zend_op* _get_recv_op(zend_op_array *op_array, zend_uint offset) ++offset; while (op < end) { if ((op->opcode == ZEND_RECV || op->opcode == ZEND_RECV_INIT) && - op->op1.u.constant.value.lval == offset) { + op->op1.u.constant.value.lval == (long)offset) { return op; } ++op;