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) {