Files
mruby-mruby/src
Yukihiro "Matz" Matsumoto a225aaa185 numeric.c: fix bigint comparison precision loss
when comparing bigint values with <=> operator, the comparison would
convert both operands to float, losing precision for values > 2^53.
this caused incorrect results like (10^20+1) <=> (10^20+2) returning 0
instead of -1.

add direct bigint comparison paths in cmpnum() to avoid float conversion
when both operands can be handled by mrb_bint_cmp().

Co-authored-by: Claude <noreply@anthropic.com>
2026-01-12 09:21:32 +09:00
..
2026-01-01 12:35:09 +09:00
2024-04-22 18:00:27 +10:00
2026-01-01 13:18:33 +09:00
2016-05-09 17:19:47 +02:00