summaryrefslogtreecommitdiff
path: root/Python/bltinmodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2006-08-24 02:10:21 +0000
committerGuido van Rossum <guido@python.org>2006-08-24 02:10:21 +0000
commit522f0f22ee0a0da06bfd67a62cba50ca9b0f4aea (patch)
tree983e0bf0a49cf5d372e384b874e6708e313cd7cb /Python/bltinmodule.c
parent37c91ba65a971a5889844b7a4cebff0b2d6568df (diff)
downloadcpython-522f0f22ee0a0da06bfd67a62cba50ca9b0f4aea.tar.gz
Make it compile with C89.
Diffstat (limited to 'Python/bltinmodule.c')
-rw-r--r--Python/bltinmodule.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index 6309624d93..94420f85d1 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);