From b039af0120c622b11f4370b1ec9a0fe70bd61ba1 Mon Sep 17 00:00:00 2001 From: Gina Peter Banyard Date: Mon, 23 Sep 2024 10:55:51 +0100 Subject: [PATCH] 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. --- ext/gmp/gmp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ext/gmp/gmp.c b/ext/gmp/gmp.c index 752d18ec564..04bfafe8691 100644 --- a/ext/gmp/gmp.c +++ b/ext/gmp/gmp.c @@ -415,14 +415,13 @@ static zend_result gmp_do_operation_ex(uint8_t opcode, zval *result, zval *op1, static zend_result gmp_do_operation(uint8_t opcode, zval *result, zval *op1, zval *op2) /* {{{ */ { zval op1_copy; - int retval; if (result == op1) { ZVAL_COPY_VALUE(&op1_copy, op1); op1 = &op1_copy; } - retval = gmp_do_operation_ex(opcode, result, op1, op2); + zend_result retval = gmp_do_operation_ex(opcode, result, op1, op2); if (retval == SUCCESS && op1 == &op1_copy) { zval_ptr_dtor(op1);