Skip to content

Commit b75745f

Browse files
committed
unsigned vars
1 parent 9209efd commit b75745f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/standard/scanf.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ PHPAPI int php_sscanf_internal( char *string, char *format,
575575
zval *return_value)
576576
{
577577
int numVars, nconversions;
578-
int i, result;
578+
int result;
579579
zend_long value;
580580
zend_ulong objIndex;
581581
char *end, *baseString;
@@ -612,7 +612,7 @@ PHPAPI int php_sscanf_internal( char *string, char *format,
612612
* If any variables are passed, make sure they are all passed by reference
613613
*/
614614
if (assignToVariables) {
615-
for (i = 0; i < argCount; i++){
615+
for (uint32_t i = 0; i < argCount; i++){
616616
ZEND_ASSERT(Z_ISREF(args[i]) && "Parameter must be passed by reference");
617617
}
618618
}

0 commit comments

Comments
 (0)