summaryrefslogtreecommitdiff
path: root/ext/standard/array.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2015-03-25 11:15:59 +0100
committerAnatol Belski <ab@php.net>2015-03-25 15:32:36 +0100
commit774b113b3211319d4a25ecf68c6a0cef76985904 (patch)
treefd53bc47d8a477f0f21b87207066b6e2e865761d /ext/standard/array.c
parentfe36285de20a09760777fa674614a36b00b13cd1 (diff)
downloadphp-git-774b113b3211319d4a25ecf68c6a0cef76985904.tar.gz
fix datatype mismatches
Diffstat (limited to 'ext/standard/array.c')
-rw-r--r--ext/standard/array.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/standard/array.c b/ext/standard/array.c
index 9ed3671fcb..cd6e020216 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);
}
}
}