Bug #22639 » 0002-Fix-rb_shape_id_offset-on-big-endian.patch
| 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"
|
||