Project

General

Profile

Bug #22639 » 0002-Fix-rb_shape_id_offset-on-big-endian.patch

runlevel5 (Trung Le), 11/26/2026 12:39 AM

View differences:

shape.c
int32_t
rb_shape_id_offset(void)
{
#ifdef WORDS_BIGENDIAN
return 0;
#else
return sizeof(uintptr_t) - SHAPE_ID_NUM_BITS / sizeof(uintptr_t);
#endif
}
// Rebuild a similar shape with the same ivars but without "non-canonical"
(2-2/3)