mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
32f99a622d
On 32-bit with MRB_WORDBOX_NO_FLOAT_TRUNCATE, RFloat stores a double (8-byte alignment) but GC heap slots only guarantee 4-byte alignment. Use char array + memcpy accessors to avoid misaligned access (SIGBUS on MIPS, undefined behavior per C standard). Co-authored-by: Claude <noreply@anthropic.com>