Skip to content

Commit

Permalink
Fix compilation of mp_prime_strong_lucas_selfridge
Browse files Browse the repository at this point in the history
Wrong datatype of argument J passed to mp_kronecker

Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
  • Loading branch information
jlaitine committed Apr 8, 2024
1 parent 42b3fb0 commit aea4912
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mp_prime_strong_lucas_selfridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ mp_err mp_prime_strong_lucas_selfridge(const mp_int *a, bool *result)
{
/* CZ TODO: choose better variable names! */
mp_int Dz, gcd, Np1, Uz, Vz, U2mz, V2mz, Qmz, Q2mz, Qkdz, T1z, T2z, T3z, T4z, Q2kdz;
int32_t D, Ds, J, sign, P, Q, r, s, u, Nbits;
int J;
int32_t D, Ds, sign, P, Q, r, s, u, Nbits;
mp_err err;
bool oddness;

Expand Down

0 comments on commit aea4912

Please sign in to comment.