Skip to content

Commit b039af0

Browse files
committed
ext/gmp: Use zend_result for type instead of int
Especially as we are widening a zend_result to int just to immediately narrow it back to a zend_result.
1 parent 702fb31 commit b039af0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ext/gmp/gmp.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,14 +415,13 @@ static zend_result gmp_do_operation_ex(uint8_t opcode, zval *result, zval *op1,
415415
static zend_result gmp_do_operation(uint8_t opcode, zval *result, zval *op1, zval *op2) /* {{{ */
416416
{
417417
zval op1_copy;
418-
int retval;
419418

420419
if (result == op1) {
421420
ZVAL_COPY_VALUE(&op1_copy, op1);
422421
op1 = &op1_copy;
423422
}
424423

425-
retval = gmp_do_operation_ex(opcode, result, op1, op2);
424+
zend_result retval = gmp_do_operation_ex(opcode, result, op1, op2);
426425

427426
if (retval == SUCCESS && op1 == &op1_copy) {
428427
zval_ptr_dtor(op1);

0 commit comments

Comments
 (0)