diff options
author | Peter Zhu <peter@peterzhu.ca> | 2023-04-14 16:27:37 -0400 |
---|---|---|
committer | Peter Zhu <peter@peterzhu.ca> | 2023-04-16 11:06:31 -0400 |
commit | 24b137336b71f77bf9ae9c532c0a5520709f73e8 (patch) | |
tree | 7d31e2d9cfa29e638144d666a262b76bb47861c9 /variable.c | |
parent | d7bb7e70cc954925d896a4185d9eb28cee2c2b6f (diff) |
Move shape ID to flags for classes on 32 bit
Moves shape ID to FL_USER4 to FL_USER19 for the shape ID on 32 bit
systems. This makes the rb_classext_struct smaller so that it can be
embedded.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/7719
Diffstat (limited to 'variable.c')
-rw-r--r-- | variable.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/variable.c b/variable.c index 90fa8760a0..39568db24a 100644 --- a/variable.c +++ b/variable.c @@ -1527,7 +1527,7 @@ rb_shape_set_shape_id(VALUE obj, shape_id_t shape_id) break; case T_CLASS: case T_MODULE: - RCLASS_EXT(obj)->shape_id = shape_id; + RCLASS_SET_SHAPE_ID(obj, shape_id); break; default: if (shape_id != SPECIAL_CONST_SHAPE_ID) { |