Commit c463203d authored by Davide Galassi's avatar Davide Galassi

Fix parethesis bug. Assignment in condition.

parent d0bc5263
Pipeline #51237373 passed with stages
in 1 minute and 37 seconds
......@@ -185,7 +185,7 @@ static int passes_miller_rabin(const cry_mpi *p)
}
/* If z = p-1, pass! */
if ((res = cry_mpi_add(&z, &z, &one) < 0))
if ((res = cry_mpi_add(&z, &z, &one)) < 0)
goto e;
res = (cry_mpi_cmp(&z, p) == 0) ? 1 : 0;
e: cry_mpi_clear_list(&a, &m, &z, &tmp, NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment