summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2006-08-24 02:10:21 (GMT)
committerGuido van Rossum <guido@python.org>2006-08-24 02:10:21 (GMT)
commit93a669260dcade6c046a5b056c0b3111f719d7b5 (patch)
tree8dada038d48d1a8ba40dbeb179f51183370bf3f3
parent47b9ff6ba11fab4c90556357c437cb4feec1e853 (diff)
downloadcpython-93a669260dcade6c046a5b056c0b3111f719d7b5.zip
cpython-93a669260dcade6c046a5b056c0b3111f719d7b5.tar.gz
cpython-93a669260dcade6c046a5b056c0b3111f719d7b5.tar.bz2
Make it compile with C89.
-rw-r--r--Python/bltinmodule.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index 6309624..94420f8 100644
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -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);