Skip to content

Commit 880bf62

Browse files
committed
Fixed bug #80617: Type narrowing warning in ZEND_TYPE_INIT_CODE
1 parent f9fbba4 commit 880bf62

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ PHP NEWS
88
Seitz, cmb)
99
. Fixed bug #80596 (Invalid union type TypeError in anonymous classes).
1010
(Daniil Gentili)
11+
. Fixed bug #80617 (GCC throws warning about type narrowing in
12+
ZEND_TYPE_INIT_CODE). (Nikita)
1113

1214
- BCMath:
1315
. Fixed bug #80545 (bcadd('a', 'a') doesn't throw an exception).

Zend/zend_types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ typedef struct {
150150
/* Type mask excluding the flags above. */
151151
#define _ZEND_TYPE_MAY_BE_MASK ((1u << 20) - 1)
152152
/* Must have same value as MAY_BE_NULL */
153-
#define _ZEND_TYPE_NULLABLE_BIT 0x2
153+
#define _ZEND_TYPE_NULLABLE_BIT 0x2u
154154

155155
#define ZEND_TYPE_IS_SET(t) \
156156
(((t).type_mask & _ZEND_TYPE_MASK) != 0)

0 commit comments

Comments
 (0)