Mercurial > cpython-lru_cache-weakref
diff Python/bltinmodule.c @ 39645:8b9ec344bed2
Make it compile with C89.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 24 Aug 2006 02:10:21 +0000 |
| parents | 13d5e5f0e993 |
| children | 08005ba6ceb9 |
line wrap: on
line diff
--- a/Python/bltinmodule.c Thu Aug 24 00:41:19 2006 +0000 +++ b/Python/bltinmodule.c Thu Aug 24 02:10:21 2006 +0000 @@ -1447,6 +1447,7 @@ 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 @@ "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);
