From cf09a314b2be9c0b2dceea5633d40da62599bddf Mon Sep 17 00:00:00 2001 From: CismonX Date: Thu, 8 Nov 2018 22:49:58 +0800 Subject: [PATCH] update --- src/collections_methods.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/collections_methods.c b/src/collections_methods.c index 4780299..8091130 100644 --- a/src/collections_methods.c +++ b/src/collections_methods.c @@ -2594,7 +2594,7 @@ PHP_METHOD(Collection, shuffle) Z_TRY_ADDREF_P(val); zend_hash_next_index_insert(shuffled, val); ZEND_HASH_FOREACH_END(); - size_t offset = 0; + uint32_t offset = 0; Bucket* bucket = shuffled->arData; for (; offset < num_elements - 1; ++offset) { zend_long rand_idx = php_mt_rand_range(offset, num_elements - 1); @@ -2613,7 +2613,7 @@ PHP_METHOD(Collection, shuffled) Z_TRY_ADDREF_P(val); zend_hash_next_index_insert(shuffled, val); ZEND_HASH_FOREACH_END(); - size_t offset = 0; + uint32_t offset = 0; Bucket* bucket = shuffled->arData; for (; offset < num_elements - 1; ++offset) { zend_long rand_idx = php_mt_rand_range(offset, num_elements - 1);