mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
bbcadd6bf9
Shifting 1 left by MRB_INT_BIT-1 (e.g., 63 on 64-bit) bits into the sign bit is undefined behavior. Change the overflow check from >= MRB_INT_BIT to >= MRB_INT_BIT-1 to prevent this. Co-authored-by: Claude <noreply@anthropic.com>