Skip to content

Commit 777a79c

Browse files
authored
zend_object_handlers: Fix type of struct _zend_object_handlers’s offset field (#21900)
This is used with `offsetof()` which evaluates to `size_t`.
1 parent 7114314 commit 777a79c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Zend/zend_object_handlers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ typedef zend_result (*zend_object_do_operation_t)(uint8_t opcode, zval *result,
204204

205205
struct _zend_object_handlers {
206206
/* offset of real object header (usually zero) */
207-
int offset;
207+
size_t offset;
208208
/* object handlers */
209209
zend_object_free_obj_t free_obj; /* required */
210210
zend_object_dtor_obj_t dtor_obj; /* required */

0 commit comments

Comments
 (0)