POLY: rm unnecessary cast

This commit is contained in:
hasufell 2014-04-16 23:18:38 +02:00 committed by malte
parent 3e6345cd47
commit 3184e9093f
1 changed files with 2 additions and 2 deletions

View File

@ -169,8 +169,8 @@ void pb_starmultiply(pb_poly *a,
for (int i = ctx->N - 1; i >= 0; i--) {
if (j == (int)(ctx->N))
j = 0;
if (mp_cmp_d(&(a->terms[i]), (mp_digit)0) != MP_EQ &&
mp_cmp_d(&(b->terms[j]), (mp_digit)0) != MP_EQ) {
if (mp_cmp_d(&(a->terms[i]), 0) != MP_EQ &&
mp_cmp_d(&(b->terms[j]), 0) != MP_EQ) {
int result;
mp_int mp_modulus;
mp_int mp_tmp;