Skip to content

Commit

Permalink
fix buggy mask (typo in my last commit..)
Browse files Browse the repository at this point in the history
  • Loading branch information
nunoplopes committed Dec 9, 2022
1 parent 96a2c04 commit 9ebacd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/mpz.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1463,7 +1463,7 @@ void mpz_manager<SYNCH>::bitwise_not(unsigned sz, mpz const & a, mpz & c) {
if (is_small(a) && sz <= 64) {
uint64_t v = ~get_uint64(a);
unsigned zero_out = 64 - sz;
v = (v >> zero_out) << zero_out;
v = (v << zero_out) >> zero_out;
set(c, v);
}
else {
Expand Down

0 comments on commit 9ebacd8

Please sign in to comment.