Skip to content

Commit 070f8b2

Browse files
committed
Adjust XtOffsetOf() to offsetof() for master
1 parent 80a147a commit 070f8b2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ext/date/php_date.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5174,7 +5174,7 @@ static void date_period_reset(php_period_obj *period_obj)
51745174
if (period_obj->interval) {
51755175
timelib_rel_time_dtor(period_obj->interval);
51765176
}
5177-
memset(period_obj, 0, XtOffsetOf(php_period_obj, std));
5177+
memset(period_obj, 0, offsetof(php_period_obj, std));
51785178
}
51795179

51805180
/* {{{ Creates new DatePeriod object. */

0 commit comments

Comments
 (0)