Skip to content

Commit

Permalink
another logic simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
tarcieri committed May 30, 2023
1 parent 32893c3 commit 087790e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ristretto.rs
Expand Up @@ -277,7 +277,7 @@ impl CompressedRistretto {
let s_encoding_is_canonical = s_bytes_check[..].ct_eq(self.as_bytes());
let s_is_negative = s.is_negative();

if (!s_encoding_is_canonical).into() || s_is_negative.into() {
if (!s_encoding_is_canonical | s_is_negative).into() {
return None;
}

Expand Down

0 comments on commit 087790e

Please sign in to comment.