Skip to content

Commit 8082b4c

Browse files
committed
Use uint32_t for number of variadic arguments in ZPP
1 parent a9695cc commit 8082b4c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Zend/zend_API.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,7 +1020,7 @@ static zend_result zend_parse_va_args(uint32_t num_args, const char *type_spec,
10201020
bool have_varargs = 0;
10211021
bool have_optional_args = 0;
10221022
zval **varargs = NULL;
1023-
int *n_varargs = NULL;
1023+
uint32_t *n_varargs = NULL;
10241024

10251025
for (spec_walk = type_spec; *spec_walk; spec_walk++) {
10261026
c = *spec_walk;
@@ -1115,11 +1115,11 @@ static zend_result zend_parse_va_args(uint32_t num_args, const char *type_spec,
11151115
}
11161116

11171117
if (*type_spec == '*' || *type_spec == '+') {
1118-
int num_varargs = num_args + 1 - post_varargs;
1118+
uint32_t num_varargs = num_args + 1 - post_varargs;
11191119

11201120
/* eat up the passed in storage even if it won't be filled in with varargs */
11211121
varargs = va_arg(*va, zval **);
1122-
n_varargs = va_arg(*va, int *);
1122+
n_varargs = va_arg(*va, uint32_t *);
11231123
type_spec++;
11241124

11251125
if (num_varargs > 0) {

0 commit comments

Comments
 (0)