From: Nikita Popov Date: Thu, 14 Jan 2021 09:08:22 +0000 (+0100) Subject: Fixed bug #80617: Type narrowing warning in ZEND_TYPE_INIT_CODE X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=880bf6222415f5bb87a73bc830bfa98ef30c267a;p=php Fixed bug #80617: Type narrowing warning in ZEND_TYPE_INIT_CODE --- diff --git a/NEWS b/NEWS index de07189a17..2f3baaf8fb 100644 --- a/NEWS +++ b/NEWS @@ -8,6 +8,8 @@ PHP NEWS Seitz, cmb) . Fixed bug #80596 (Invalid union type TypeError in anonymous classes). (Daniil Gentili) + . Fixed bug #80617 (GCC throws warning about type narrowing in + ZEND_TYPE_INIT_CODE). (Nikita) - BCMath: . Fixed bug #80545 (bcadd('a', 'a') doesn't throw an exception). diff --git a/Zend/zend_types.h b/Zend/zend_types.h index 3b1ec85452..82cf20f1b5 100644 --- a/Zend/zend_types.h +++ b/Zend/zend_types.h @@ -150,7 +150,7 @@ typedef struct { /* Type mask excluding the flags above. */ #define _ZEND_TYPE_MAY_BE_MASK ((1u << 20) - 1) /* Must have same value as MAY_BE_NULL */ -#define _ZEND_TYPE_NULLABLE_BIT 0x2 +#define _ZEND_TYPE_NULLABLE_BIT 0x2u #define ZEND_TYPE_IS_SET(t) \ (((t).type_mask & _ZEND_TYPE_MASK) != 0)