mirror of
https://github.com/Perl/perl5.git
synced 2026-01-27 09:55:18 +00:00
If $m % $n would generate a result that shall be equal to (IV_MIN - 1), pp_modulo() used to wrongly convert it into IV and return wrapped (overflowed) result. handy.h: Added utility macros for this fix. I think these macro can be used in other places, so I put them on .h file. t/opbasic/arith.t, t/op/64bitint.t: Added tests for this.