From: Tim Peters Date: Thu, 23 Aug 2001 21:28:33 +0000 (+0000) Subject: int_pow(): Repair typo when passing on to float pow (the 2nd argument was X-Git-Tag: v2.2a3~358 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=31960db5a56d07584c53970799c530f42183f7b9;p=python int_pow(): Repair typo when passing on to float pow (the 2nd argument was being passed as both the 2nd and 3rd args). Regression test will follow. --- diff --git a/Objects/intobject.c b/Objects/intobject.c index 7724760667..847c74d33a 100644 --- a/Objects/intobject.c +++ b/Objects/intobject.c @@ -585,7 +585,7 @@ int_pow(PyIntObject *v, PyIntObject *w, PyIntObject *z) return PyLong_Type.tp_as_number->nb_power( (PyObject *)v, (PyObject *)w, - (PyObject *)w); + (PyObject *)z); } } iw >>= 1; /* Shift exponent down by 1 bit */