From 880bf6222415f5bb87a73bc830bfa98ef30c267a Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Thu, 14 Jan 2021 10:08:22 +0100 Subject: Fixed bug #80617: Type narrowing warning in ZEND_TYPE_INIT_CODE --- NEWS | 2 ++ Zend/zend_types.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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) -- cgit v1.2.1