]> granicus.if.org Git - python/commitdiff
int_pow(): Repair typo when passing on to float pow (the 2nd argument was
authorTim Peters <tim.peters@gmail.com>
Thu, 23 Aug 2001 21:28:33 +0000 (21:28 +0000)
committerTim Peters <tim.peters@gmail.com>
Thu, 23 Aug 2001 21:28:33 +0000 (21:28 +0000)
being passed as both the 2nd and 3rd args).  Regression test will follow.

Objects/intobject.c

index 77247606670f179fe3ac8ddf3f02a6da55075b38..847c74d33a3e333ec042a5286e5b8b02d3b0be19 100644 (file)
@@ -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 */