Skip to content

Commit

Permalink
A (hopefully final) fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
dfaranha committed Aug 22, 2023
1 parent 38ba1f5 commit dda4844
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fp/relic_fp_smb.c
Original file line number Diff line number Diff line change
Expand Up @@ -343,11 +343,11 @@ int fp_smb_jmpds(const fp_t a) {
j = (j + (j & 1)) % 4;

fp_zero(t0);
r = RLC_SEL(r, 1 - j, dv_cmp_const(f, t0, RLC_FP_DIGS) == RLC_EQ);
t0[0] = 1;
r = RLC_SEL(r, 1 - j, dv_cmp_const(f, t0, RLC_FP_DIGS) == RLC_EQ);
bn_negs_low(t0, t0, 1, RLC_FP_DIGS);
r = RLC_SEL(r, 1 - j, dv_cmp_const(f, t0, RLC_FP_DIGS) == RLC_EQ);
r = RLC_SEL(r, 1 - j, fp_is_zero(f));
}
RLC_CATCH_ANY {
RLC_THROW(ERR_CAUGHT);
Expand Down

0 comments on commit dda4844

Please sign in to comment.