Fixed bug #80617: Type narrowing warning in ZEND_TYPE_INIT_CODE

This commit is contained in:
Nikita Popov 2021-01-14 10:08:22 +01:00
parent f9fbba41b6
commit 880bf62224
2 changed files with 3 additions and 1 deletions

2
NEWS
View file

@ -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).

View file

@ -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)