mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
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.
This commit is contained in:
parent
f17efb93d9
commit
31960db5a5
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue