]> granicus.if.org Git - python/commitdiff
Make it compile with C89.
authorGuido van Rossum <guido@python.org>
Thu, 24 Aug 2006 02:10:21 +0000 (02:10 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 24 Aug 2006 02:10:21 +0000 (02:10 +0000)
Python/bltinmodule.c

index 6309624d93afb2ed8202b7ebcc7aa08deec2ad39..94420f85d1a0a391465d15942162b75ae3f48a7d 100644 (file)
@@ -1447,6 +1447,7 @@ handle_range_longs(PyObject *self, PyObject *args)
                bign = get_len_of_range_longs(ilow, ihigh, istep);
        else {
                int step_zero = PyObject_RichCompareBool(istep, zero, Py_EQ);
+               PyObject *neg_istep;
                if (step_zero < 0)
                        goto Fail;
                if (step_zero) {
@@ -1454,7 +1455,7 @@ handle_range_longs(PyObject *self, PyObject *args)
                                "range() step argument must not be zero");
                        goto Fail;
                }
-               PyObject *neg_istep = PyNumber_Negative(istep);
+               neg_istep = PyNumber_Negative(istep);
                if (neg_istep == NULL)
                        goto Fail;
                bign = get_len_of_range_longs(ihigh, ilow, neg_istep);