]> granicus.if.org Git - php/commitdiff
fix type consistency after
authorRemi Collet <remi@php.net>
Mon, 9 Sep 2019 12:20:57 +0000 (14:20 +0200)
committerRemi Collet <remi@php.net>
Mon, 9 Sep 2019 12:20:57 +0000 (14:20 +0200)
8f897f1040f00210f4a5cdd82a88a1fe3e558955

ext/zip/php_zip.c

index e6918f93b117817cea99f1afd57f90bb2e49e92f..71edbe10b9fbf8e663015e3447970c7363d156fa 100644 (file)
@@ -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);