From 766d5ff32ffef2fe47854b8aa76aa2636f78bffe Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 9 Sep 2019 14:20:57 +0200 Subject: [PATCH] fix type consistency after 8f897f1040f00210f4a5cdd82a88a1fe3e558955 --- ext/zip/php_zip.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/zip/php_zip.c b/ext/zip/php_zip.c index e6918f93b1..71edbe10b9 100644 --- a/ext/zip/php_zip.c +++ b/ext/zip/php_zip.c @@ -821,7 +821,7 @@ static void php_zip_register_prop_handler(HashTable *prop_handler, char *name, z static zval *php_zip_property_reader(ze_zip_object *obj, zip_prop_handler *hnd, zval *rv) /* {{{ */ { const char *retchar = NULL; - int retint = 0; + zend_long retint = 0; int len = 0; if (obj && obj->za != NULL) { @@ -853,10 +853,10 @@ static zval *php_zip_property_reader(ze_zip_object *obj, zip_prop_handler *hnd, break; /* case IS_TRUE */ case IS_FALSE: - ZVAL_BOOL(rv, (long)retint); + ZVAL_BOOL(rv, retint); break; case IS_LONG: - ZVAL_LONG(rv, (long)retint); + ZVAL_LONG(rv, retint); break; default: ZVAL_NULL(rv); -- 2.50.1