From 3184e9093fe19355a2abf1e53762ee5e9bdc35b2 Mon Sep 17 00:00:00 2001 From: hasufell Date: Wed, 16 Apr 2014 23:18:38 +0200 Subject: [PATCH] POLY: rm unnecessary cast --- src/poly.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/poly.c b/src/poly.c index ac7d4d4..56ad436 100644 --- a/src/poly.c +++ b/src/poly.c @@ -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;