Skip to content

Commit 512ff32

Browse files
author
Andi Gutmans
committed
- No reason for refcount to be signed and move to zend_* typedefs
1 parent f5a77d0 commit 512ff32

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Zend/zend.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@
117117
typedef unsigned char zend_bool;
118118
typedef unsigned char zend_uchar;
119119
typedef unsigned int zend_uint;
120+
typedef unsigned short zend_ushort;
120121

121122
#undef SUCCESS
122123
#undef FAILURE
@@ -155,9 +156,9 @@ typedef union _zvalue_value {
155156
struct _zval_struct {
156157
/* Variable information */
157158
zvalue_value value; /* value */
158-
unsigned char type; /* active type */
159-
unsigned char is_ref;
160-
short refcount;
159+
zend_uchar type; /* active type */
160+
zend_uchar is_ref;
161+
zend_ushort refcount;
161162
};
162163

163164

0 commit comments

Comments
 (0)