Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 010b0cc

Browse files
committed
Fix a silly bug in float_pow. Sorry Tim.
1 parent 81473b1 commit 010b0cc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Objects/floatobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ float_pow(PyObject *v, PyObject *w, PyObject *z)
503503
PyFPE_START_PROTECT("pow", return NULL)
504504
if ((PyObject *)z != Py_None) {
505505
double iz;
506-
CONVERT_TO_DOUBLE(w, iz);
506+
CONVERT_TO_DOUBLE(z, iz);
507507
ix=fmod(1.0, iz);
508508
if (ix!=0 && iz<0) ix+=iz;
509509
}

0 commit comments

Comments
 (0)