Closed briansmith closed 8 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 96.28%. Comparing base (
9751924
) to head (5f7a4c7
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
x.checked_shl(x)
does NOT check the result against overflow; it only checks that the shift count isn't larger than the bitlength. Usex.checked_mul(8)
instead ofx.checked_shl(3)
to get the correct effect.This doesn't seem to have any impact as the inputs are already constrained by additional checks by the users of
BitLength
.