Commit 010b0cc2 authored by Neil Schemenauer's avatar Neil Schemenauer

Fix a silly bug in float_pow. Sorry Tim.

parent 81473b12
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment