Skip to content

Commit

Permalink
cmov: fix Clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
newpavlov committed Feb 21, 2025
1 parent b4ba2c8 commit 7c9fd47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmov/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ impl Cmov for u128 {
lo.cmovnz(&((*value & u64::MAX as u128) as u64), condition);
hi.cmovnz(&((*value >> 64) as u64), condition);

*self = (lo as u128) | (hi as u128) << 64;
*self = (lo as u128) | ((hi as u128) << 64);
}

#[inline]
Expand All @@ -107,7 +107,7 @@ impl Cmov for u128 {
lo.cmovz(&((*value & u64::MAX as u128) as u64), condition);
hi.cmovz(&((*value >> 64) as u64), condition);

*self = (lo as u128) | (hi as u128) << 64;
*self = (lo as u128) | ((hi as u128) << 64);
}
}

Expand Down

0 comments on commit 7c9fd47

Please sign in to comment.