Skip to content

Commit 6d546fc

Browse files
committed
feedback
1 parent e1dc9d9 commit 6d546fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎ext/intl/converter/converter_class.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ typedef struct _php_converter_object {
3434
} php_converter_object;
3535

3636
static inline php_converter_object *php_converter_fetch_object(zend_object *obj) {
37-
return (php_converter_object *)((char*)(obj) - offsetof(php_converter_object, obj));
37+
return ZEND_CONTAINER_OF(obj, php_converter_object, obj);
3838
}
3939
#define Z_INTL_CONVERTER_P(zv) php_converter_fetch_object(Z_OBJ_P(zv))
4040

0 commit comments

Comments
 (0)