summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-02-10 17:01:08 (GMT)
committerGuido van Rossum <guido@python.org>1995-02-10 17:01:08 (GMT)
commit760dd1031a8db93dc53ae3eb836bcc44a36918a1 (patch)
tree66ae5769f943402a69c5d11bdcc1594577ea01a5 /Modules
parent9fa2c116139a22d647fc736cf36dfd815c6de944 (diff)
downloadcpython-760dd1031a8db93dc53ae3eb836bcc44a36918a1.zip
cpython-760dd1031a8db93dc53ae3eb836bcc44a36918a1.tar.gz
cpython-760dd1031a8db93dc53ae3eb836bcc44a36918a1.tar.bz2
add some casts
Diffstat (limited to 'Modules')
-rw-r--r--Modules/mpzmodule.c6
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);
}