Skip to content

Commit

Permalink
NTRU Prime: another explicit cast
Browse files Browse the repository at this point in the history
  • Loading branch information
jschanck committed Jun 3, 2021
1 parent b0dedbd commit 94ba14c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ntruprime/patches/crypto_core_inv3sntrup761_ref_recip.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
+ for (i = 0;i < p;++i) out[i] = (small) (sign*v[p-1-i]);

- out[p] = int16_nonzero_mask(delta);
+ out[p] = (small) int16_nonzero_mask(delta);
+ out[p] = (small) int16_nonzero_mask((int16) delta);
return 0;
}

0 comments on commit 94ba14c

Please sign in to comment.