mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Use uint32_t for number of variadic arguments in ZPP
This commit is contained in:
parent
a9695cc615
commit
8082b4c944
1 changed files with 3 additions and 3 deletions
|
@ -1020,7 +1020,7 @@ static zend_result zend_parse_va_args(uint32_t num_args, const char *type_spec,
|
||||||
bool have_varargs = 0;
|
bool have_varargs = 0;
|
||||||
bool have_optional_args = 0;
|
bool have_optional_args = 0;
|
||||||
zval **varargs = NULL;
|
zval **varargs = NULL;
|
||||||
int *n_varargs = NULL;
|
uint32_t *n_varargs = NULL;
|
||||||
|
|
||||||
for (spec_walk = type_spec; *spec_walk; spec_walk++) {
|
for (spec_walk = type_spec; *spec_walk; spec_walk++) {
|
||||||
c = *spec_walk;
|
c = *spec_walk;
|
||||||
|
@ -1115,11 +1115,11 @@ static zend_result zend_parse_va_args(uint32_t num_args, const char *type_spec,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (*type_spec == '*' || *type_spec == '+') {
|
if (*type_spec == '*' || *type_spec == '+') {
|
||||||
int num_varargs = num_args + 1 - post_varargs;
|
uint32_t num_varargs = num_args + 1 - post_varargs;
|
||||||
|
|
||||||
/* eat up the passed in storage even if it won't be filled in with varargs */
|
/* eat up the passed in storage even if it won't be filled in with varargs */
|
||||||
varargs = va_arg(*va, zval **);
|
varargs = va_arg(*va, zval **);
|
||||||
n_varargs = va_arg(*va, int *);
|
n_varargs = va_arg(*va, uint32_t *);
|
||||||
type_spec++;
|
type_spec++;
|
||||||
|
|
||||||
if (num_varargs > 0) {
|
if (num_varargs > 0) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue