Skip to content

Commit 766d5ff

Browse files
committed
fix type consistency after
8f897f1
1 parent 36a8cf5 commit 766d5ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/zip/php_zip.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@ static void php_zip_register_prop_handler(HashTable *prop_handler, char *name, z
821821
static zval *php_zip_property_reader(ze_zip_object *obj, zip_prop_handler *hnd, zval *rv) /* {{{ */
822822
{
823823
const char *retchar = NULL;
824-
int retint = 0;
824+
zend_long retint = 0;
825825
int len = 0;
826826

827827
if (obj && obj->za != NULL) {
@@ -853,10 +853,10 @@ static zval *php_zip_property_reader(ze_zip_object *obj, zip_prop_handler *hnd,
853853
break;
854854
/* case IS_TRUE */
855855
case IS_FALSE:
856-
ZVAL_BOOL(rv, (long)retint);
856+
ZVAL_BOOL(rv, retint);
857857
break;
858858
case IS_LONG:
859-
ZVAL_LONG(rv, (long)retint);
859+
ZVAL_LONG(rv, retint);
860860
break;
861861
default:
862862
ZVAL_NULL(rv);

0 commit comments

Comments
 (0)