Skip to content

Commit 41b4d43

Browse files
committed
Zend: ZPP use uint32_t type for variable storing result of ZEND_CALL_NUM_ARGS()
1 parent 54b58d5 commit 41b4d43

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Zend/zend_API.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,10 @@ ZEND_API zend_string *zend_zval_get_legacy_type(const zval *arg) /* {{{ */
198198

199199
ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_parameters_none_error(void) /* {{{ */
200200
{
201-
int num_args = ZEND_CALL_NUM_ARGS(EG(current_execute_data));
201+
uint32_t num_args = ZEND_CALL_NUM_ARGS(EG(current_execute_data));
202202
zend_string *func_name = get_active_function_or_method_name();
203203

204-
zend_argument_count_error("%s() expects exactly 0 arguments, %d given", ZSTR_VAL(func_name), num_args);
204+
zend_argument_count_error("%s() expects exactly 0 arguments, %" PRIu32 " given", ZSTR_VAL(func_name), num_args);
205205

206206
zend_string_release(func_name);
207207
}

0 commit comments

Comments
 (0)