Skip to content

Commit

Permalink
Make precedence more clear
Browse files Browse the repository at this point in the history
  • Loading branch information
est31 committed Dec 11, 2020
1 parent ab5e685 commit 7b50a46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ fn exp_fast(base :u32, exponent: u8) -> u32 {
// Okay, now we have to find out
// whether this matters or not.
// Check whether selfmul would have been needed.
if i < 7 && (exponent >> i + 1) > 0 {
if i < 7 && (exponent >> (i + 1)) > 0 {
panic!("Overflow when squaring for exp_fast, \
precondition violated!");
}
Expand Down

0 comments on commit 7b50a46

Please sign in to comment.