Skip to content

Commit 740eecf

Browse files
committed
ext/random: Use size_t type instead of int type
1 parent ab2f6fd commit 740eecf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ext/random/random.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ PHPAPI bool php_random_hex2bin_le(const zend_string *hexstr, void *dest)
359359
size_t len = hexstr->len >> 1;
360360
const unsigned char *str = (unsigned char *) ZSTR_VAL(hexstr);
361361
unsigned char *ptr = (unsigned char *) dest;
362-
int i = 0;
362+
size_t i = 0;
363363

364364
#ifdef WORDS_BIGENDIAN
365365
/* force little endian */

0 commit comments

Comments
 (0)