summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2006-02-28 02:22:57 +0000
committerMarcus Boerger <helly@php.net>2006-02-28 02:22:57 +0000
commitc4b81d87204276712c49591441314dad9222d27b (patch)
tree332760847bb5ea8245502474ece1540443579c37
parent728493ca37c52c184a08f4a2566decc8b644178e (diff)
downloadphp-git-c4b81d87204276712c49591441314dad9222d27b.tar.gz
- Fix warning
-rw-r--r--ext/iconv/iconv.c2
-rw-r--r--ext/reflection/php_reflection.c2
2 files changed, 2 insertions, 2 deletions
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;