summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-08-23 21:28:33 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-08-23 21:28:33 (GMT)
commit31960db5a56d07584c53970799c530f42183f7b9 (patch)
tree3c2b80c968bc4106dae8795f678f7eb16dffdc87 /Objects
parentf17efb93d95562071b6069e44b723873ffba05f4 (diff)
downloadcpython-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.c2
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 */