From: Ilia Alshanetsky Date: Thu, 30 Jan 2003 23:36:08 +0000 (+0000) Subject: Fixed compiler warning regarding signed/unsigned int comparisons. X-Git-Tag: RELEASE_0_5~1356 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7a3c54fc369a05f7df6d88605f46b487695ff2ba;p=php Fixed compiler warning regarding signed/unsigned int comparisons. --- diff --git a/Zend/zend_operators.c b/Zend/zend_operators.c index e497947389..b526e454a5 100644 --- a/Zend/zend_operators.c +++ b/Zend/zend_operators.c @@ -834,7 +834,7 @@ ZEND_API int bitwise_not_function(zval *result, zval *op1 TSRMLS_DC) return SUCCESS; } if (op1->type == IS_STRING) { - zend_uint i; + int i; result->type = IS_STRING; result->value.str.val = estrndup(op1->value.str.val, op1->value.str.len); @@ -856,7 +856,7 @@ ZEND_API int bitwise_or_function(zval *result, zval *op1, zval *op2 TSRMLS_DC) if (op1->type == IS_STRING && op2->type == IS_STRING) { zval *longer, *shorter; char *result_str; - zend_uint i, result_len; + int i, result_len; if (op1->value.str.len >= op2->value.str.len) { longer = op1; @@ -895,7 +895,7 @@ ZEND_API int bitwise_and_function(zval *result, zval *op1, zval *op2 TSRMLS_DC) if (op1->type == IS_STRING && op2->type == IS_STRING) { zval *longer, *shorter; char *result_str; - zend_uint i, result_len; + int i, result_len; if (op1->value.str.len >= op2->value.str.len) { longer = op1; @@ -936,7 +936,7 @@ ZEND_API int bitwise_xor_function(zval *result, zval *op1, zval *op2 TSRMLS_DC) if (op1->type == IS_STRING && op2->type == IS_STRING) { zval *longer, *shorter; char *result_str; - zend_uint i, result_len; + int i, result_len; if (op1->value.str.len >= op2->value.str.len) { longer = op1;