From 286d41be97d27fabaefb5dd804e8258595418851 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Sat, 17 Feb 2018 19:20:41 -0500 Subject: [PATCH] Backport PR #10519: _macosx.m fails to compile on Mac OS 10.6.8 Snow Leopard - Issue #10516 --- src/_macosx.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/_macosx.m b/src/_macosx.m index 50556c017b49..8f44f1eb0c54 100644 --- a/src/_macosx.m +++ b/src/_macosx.m @@ -1307,7 +1307,9 @@ -(void)save_figure:(id)sender } Py_ssize_t list_index = 0; PyObject* list = PyList_New(m); - for (size_t state_index = 0; state_index < n; state_index++) + + size_t state_index; + for (state_index = 0; state_index < n; state_index++) { if(states[state_index]==1) {