com php-src: fix datatype mismatches: ext/standard/array.c

From: Date: Wed, 25 Mar 2015 14:32:36 +0000
Subject: com php-src: fix datatype mismatches: ext/standard/array.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-85873@lists.php.net to get a copy of this message
Commit: 774b113b3211319d4a25ecf68c6a0cef76985904 Author: Anatol Belski <ab@php.net> Wed, 25 Mar 2015 11:15:59 +0100 Parents: fe36285de20a09760777fa674614a36b00b13cd1 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=774b113b3211319d4a25ecf68c6a0cef76985904 Log: fix datatype mismatches Changed paths: M ext/standard/array.c Diff: diff --git a/ext/standard/array.c b/ext/standard/array.c index 9ed3671..cd6e020 100644 --- a/ext/standard/array.c +++ b/ext/standard/array.c @@ -1874,7 +1874,8 @@ static void php_array_data_shuffle(zval *array) /* {{{ */ uint32_t idx, j, n_elems; Bucket *p, temp; HashTable *hash; - zend_long rnd_idx, n_left; + zend_long rnd_idx; + uint32_t n_left; n_elems = zend_hash_num_elements(Z_ARRVAL_P(array)); @@ -1929,7 +1930,7 @@ static void php_array_data_shuffle(zval *array) /* {{{ */ temp = hash->arData[n_left]; hash->arData[n_left] = hash->arData[rnd_idx]; hash->arData[rnd_idx] = temp; - zend_hash_iterators_update(hash, rnd_idx, n_left); + zend_hash_iterators_update(hash, (uint32_t)rnd_idx, n_left); } } }

« previous php.cvs (#85873) next »