From 9d63f0dac8cfc902b60963becb4bada5817c929f Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Fri, 29 Apr 2011 13:15:39 +0200 Subject: [PATCH] fix error when running --- d0_bignum-tommath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d0_bignum-tommath.c b/d0_bignum-tommath.c index d38a260..71954a2 100644 --- a/d0_bignum-tommath.c +++ b/d0_bignum-tommath.c @@ -398,7 +398,7 @@ d0_bignum_t *d0_bignum_mod_pow(d0_bignum_t *r, const d0_bignum_t *a, const d0_bi D0_BOOL d0_bignum_mod_inv(d0_bignum_t *r, const d0_bignum_t *a, const d0_bignum_t *m) { // here, r MUST be set, as otherwise we cannot return error state! - return mp_invmod(&a->z, &m->z, &r->z); + return mp_invmod(&a->z, &m->z, &r->z) == MP_OKAY; } int d0_bignum_isprime(d0_bignum_t *r, int param) -- 2.39.2