]> granicus.if.org Git - php/commitdiff
Kill this new and insanely annoying warning
authorKalle Sommer Nielsen <kalle@php.net>
Mon, 14 Jan 2019 07:05:44 +0000 (09:05 +0200)
committerKalle Sommer Nielsen <kalle@php.net>
Mon, 14 Jan 2019 07:05:44 +0000 (09:05 +0200)
Nikita, if this is not the right way to go about it, then please amend it

Zend/zend_API.h

index 27fc6cb011debe02b1f1aa1a770cae581d0e1f68..73bd894909f3051b18538539d1661d4464bcd110 100644 (file)
@@ -776,7 +776,7 @@ static zend_always_inline zval *zend_try_array_init(zval *zv) {
 
 static zend_always_inline zval *zend_try_array_init_size(zval *zv, size_t size) {
        zval tmp;
-       ZVAL_ARR(&tmp, zend_new_array(size));
+       ZVAL_ARR(&tmp, zend_new_array((uint32_t)size));
        if (UNEXPECTED(zend_try_assign(zv, &tmp) == FAILURE)) {
                return NULL;
        }