diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-02-28 18:47:06 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-02-28 18:47:06 -0500 |
commit | 67d1a207b13ad3563111201602a46c0874cc3a8a (patch) | |
tree | e5a0a961e862317ef6a25b792a200ea73eab4790 | |
parent | 42188a934976fa72b38da2cd0cde800223400a7f (diff) | |
download | python-coveragepy-67d1a207b13ad3563111201602a46c0874cc3a8a.tar.gz |
Stick to old-school C syntax
-rw-r--r-- | coverage/tracer.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |