diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-08-23 21:28:33 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-08-23 21:28:33 (GMT) |
commit | 31960db5a56d07584c53970799c530f42183f7b9 (patch) | |
tree | 3c2b80c968bc4106dae8795f678f7eb16dffdc87 /Objects | |
parent | f17efb93d95562071b6069e44b723873ffba05f4 (diff) | |
download | cpython-31960db5a56d07584c53970799c530f42183f7b9.zip cpython-31960db5a56d07584c53970799c530f42183f7b9.tar.gz cpython-31960db5a56d07584c53970799c530f42183f7b9.tar.bz2 |
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.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/intobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/intobject.c b/Objects/intobject.c index 7724760..847c74d 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 */ |