Skip to content

Commit

Permalink
Fix undefined left shift by -1
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklonga committed Mar 6, 2021
1 parent 0b6f740 commit 6798144
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/compression/dlog.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ int ord2w_dloghyb(const felm_t *h, const int *logT, const felm_t *Texp, const fe
ord = W_2_1 - t;
tmp = ((d >> (W_2_1-ord))-1) >> 1;
i_j = reverse_bits(tmp,ord-1);
fpcorrection(H[0][0]);
if (is_felm_zero(H[0][0])) { // check if compressed Fp2 element H[0] is -1
fpneg(one);
fpcorrection(one);
Expand Down

0 comments on commit 6798144

Please sign in to comment.