Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Throw on underflow in infix:<**>(Int, Int)
Fixes RT#130369: https://rt.perl.org/Ticket/Display.html?id=130369 The behaviour in the ticket is observed due to the power being small enough that overflow doesn't occur when we raise a number to absolute power, yet large enough that when we divide 1 by it, it underflows. - Add extra check for overflow condition to throw underflow exception if the power is negative - Check for zero result and throw underflow if the base is not zero
- Loading branch information