fix an error where mp_copy was used instead of mp_sub_d

pull/1665/head
John Safranek 2018-07-12 11:03:41 -07:00
parent 5908230d20
commit d486df50aa
1 changed files with 1 additions and 1 deletions

View File

@ -4660,7 +4660,7 @@ int mp_prime_is_prime_ex (mp_int * a, int t, int *result, WC_RNG *rng)
goto LBL_B;
}
if ((err = mp_copy(a, 2, &c)) != MP_OKAY) {
if ((err = mp_sub_d(a, 2, &c)) != MP_OKAY) {
goto LBL_B;
}