mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
07a4b755fb
MRB_FL_OBJ_SHAPED uses bit 5 of flags, which on 32-bit conflicts with Hash's ea_n_used field (bits 5-9). A Hash with entries would falsely match MRB_OBJ_SHAPED_P, causing SEGV when its iv pointer was misinterpreted as mrb_shaped_iv. Add tt == MRB_TT_OBJECT check to the predicate. Co-authored-by: Claude <noreply@anthropic.com>