diff options
-rw-r--r-- | Modules/mpzmodule.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/mpzmodule.c b/Modules/mpzmodule.c index ce31a4b..397f825 100644 --- a/Modules/mpzmodule.c +++ b/Modules/mpzmodule.c @@ -586,10 +586,10 @@ mpz_power(a, b, m) { mpzobject *z2; INCREF(Py_None); - z=mpz_power(a, b, (mpzobject *)Py_None); + z=(mpzobject *)mpz_power(a, b, (mpzobject *)Py_None); DECREF(Py_None); - if (z==NULL) return(z); - z2=mpz_remainder(z, m); + if (z==NULL) return((object *)z); + z2=(mpzobject *)mpz_remainder(z, m); DECREF(z); return((object *)z2); } |