The code was performing an extra squaring of the base, which might trigger an arithmetic overflow that doesn't matter to the result. Now this squaring is only attempted when enough exp remains to need it. A new doctest tries pow(6u8, 3), where an extra square would exceed 256. |
||
---|---|---|
.. | ||
bigint.rs | ||
complex.rs | ||
integer.rs | ||
iter.rs | ||
lib.rs | ||
rational.rs | ||
traits.rs |