mirror of
https://github.com/python/cpython.git
synced 2025-07-12 13:55:34 +00:00
Fix a silly bug in float_pow. Sorry Tim.
This commit is contained in:
parent
81473b12b7
commit
010b0cc218
1 changed files with 1 additions and 1 deletions
|
@ -503,7 +503,7 @@ float_pow(PyObject *v, PyObject *w, PyObject *z)
|
|||
PyFPE_START_PROTECT("pow", return NULL)
|
||||
if ((PyObject *)z != Py_None) {
|
||||
double iz;
|
||||
CONVERT_TO_DOUBLE(w, iz);
|
||||
CONVERT_TO_DOUBLE(z, iz);
|
||||
ix=fmod(1.0, iz);
|
||||
if (ix!=0 && iz<0) ix+=iz;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue