From 67d1a207b13ad3563111201602a46c0874cc3a8a Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 28 Feb 2015 18:47:06 -0500 Subject: Stick to old-school C syntax --- coverage/tracer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/coverage/tracer.c b/coverage/tracer.c index c606e5f..52543b8 100644 --- a/coverage/tracer.c +++ b/coverage/tracer.c @@ -703,6 +703,7 @@ CTracer_unpack_pair(CTracer *self, PyObject *pair, int *p_one, int *p_two) int ret = RET_ERROR; int the_int; PyObject * pyint = NULL; + int index; if (!PyTuple_Check(pair) || PyTuple_Size(pair) != 2) { PyErr_SetString( @@ -712,7 +713,7 @@ CTracer_unpack_pair(CTracer *self, PyObject *pair, int *p_one, int *p_two) goto error; } - for (int index = 0; index < 2; index++) { + for (index = 0; index < 2; index++) { pyint = PyTuple_GetItem(pair, index); if (pyint == NULL) { goto error; -- cgit v1.2.1