From: Rudolf Polzer Date: Fri, 29 Apr 2011 11:15:39 +0000 (+0200) Subject: fix error when running X-Git-Tag: xonotic-v0.5.0~6 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9d63f0dac8cfc902b60963becb4bada5817c929f;p=xonotic%2Fd0_blind_id.git fix error when running --- 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)