893dcb5f25 (ruby_4_0): merge revision(s) 19e539c9ee1701b34189fa0c1feb942adeb0e326: [Backport #21814]

0 views
Skip to first unread message

Takashi Kokubun

unread,
Jan 12, 2026, 8:05:43 PMJan 12
to ruby...@g.ruby-lang.org
Takashi Kokubun 2026-01-13 01:05:12 +0000 (Tue, 13 Jan 2026)

New Revision: 893dcb5f25

https://github.com/ruby/ruby/commit/893dcb5f25

Log:
merge revision(s) 19e539c9ee1701b34189fa0c1feb942adeb0e326: [Backport #21814]

[PATCH] [Bug #21814] Fix negative bignum modulo

If modulo is zero, do not apply bias even if the divisor is zero.
`BIGNUM_POSITIVE_P` is true even on bignum zero.

Modified files:
bignum.c
test/ruby/test_numeric.rb
Reply all
Reply to author
Forward
0 new messages