mirror of
https://github.com/bdnugget/php-src.git
synced 2026-11-12 03:30:50 +00:00
Change zend_try_array_init_size arg to uint32_t
If this is all the underlying API supports, it doesn't make sense to accept something larger here...
This commit is contained in:
1 parent
1ff33f3161
commit
e25e2bd9bd
1 file changed
+2
-2
+2
-2
@@ -774,9 +774,9 @@ static zend_always_inline zval *zend_try_array_init(zval *zv) {
|
||||
return zv;
|
||||
}
|
||||
|
||||
static zend_always_inline zval *zend_try_array_init_size(zval *zv, size_t size) {
|
||||
static zend_always_inline zval *zend_try_array_init_size(zval *zv, uint32_t size) {
|
||||
zval tmp;
|
||||
ZVAL_ARR(&tmp, zend_new_array((uint32_t)size));
|
||||
ZVAL_ARR(&tmp, zend_new_array(size));
|
||||
if (UNEXPECTED(zend_try_assign(zv, &tmp) == FAILURE)) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user