[pecl-numbers-bitset] master: use offsetof instead of its alias XtOffsetOf

From: Date: Thu, 08 Oct 2026 09:28:38 +0000
Subject: [pecl-numbers-bitset] master: use offsetof instead of its alias XtOffsetOf
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-28687@lists.php.net to get a copy of this message
Author: Remi Collet (remicollet) Date: 2026-10-08T11:25:21+02:00 Commit: https://github.com/php/pecl-numbers-bitset/commit/2c68eb7087af89221f815194d0e4bc22abd5998f Raw diff: https://github.com/php/pecl-numbers-bitset/commit/2c68eb7087af89221f815194d0e4bc22abd5998f.diff use offsetof instead of its alias XtOffsetOf Changed paths: M bitset.c M php_bitset.h Diff: diff --git a/bitset.c b/bitset.c index 04ca89a..90c1dcc 100644 --- a/bitset.c +++ b/bitset.c @@ -945,7 +945,7 @@ PHP_MINIT_FUNCTION(bitset) memcpy(&bitset_object_handlers, zend_get_std_object_handlers(), sizeof(bitset_object_handlers)); bitset_object_handlers.free_obj = bitset_free_object; bitset_object_handlers.dtor_obj = bitset_destroy_object; - bitset_object_handlers.offset = XtOffsetOf(php_bitset_object, zo); + bitset_object_handlers.offset = offsetof(php_bitset_object, zo); return SUCCESS; } diff --git a/php_bitset.h b/php_bitset.h index 08490b5..1a02bac 100644 --- a/php_bitset.h +++ b/php_bitset.h @@ -48,7 +48,7 @@ PHP_MINFO_FUNCTION(bitset); static inline php_bitset_object *php_bitset_fetch_object(zend_object *obj) { - return (php_bitset_object *)((char *)(obj) - XtOffsetOf(php_bitset_object, zo)); + return (php_bitset_object *)((char *)(obj) - offsetof(php_bitset_object, zo)); } #endif

« previous php.pecl.cvs (#28687) next »