Skip to content

Commit

Permalink
Fix a silly mistake in fix for #120.
Browse files Browse the repository at this point in the history
  • Loading branch information
kaj committed Dec 8, 2021
1 parent ed011b9 commit 5fe203a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/value/colors/rgba.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ fn cap(n: Rational, max: &Rational) -> Rational {
}

fn limit_denom(v: Rational) -> Rational {
let numer: &i64 = v.numer();
let t = i64::BITS - numer.leading_zeros();
let denom: &i64 = v.denom();
let t = i64::BITS - denom.leading_zeros();
if t > 48 {
let t = t - 46;
Rational::new(v.numer() >> t, v.denom() >> t)
Expand Down

0 comments on commit 5fe203a

Please sign in to comment.