Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 584420c

Browse files
authored
Merge pull request #10521 from matplotlib/auto-backport-of-pr-10519
Backport PR #10519 on branch v2.2.x
2 parents 652a4c3 + 286d41b commit 584420c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/_macosx.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1307,7 +1307,9 @@ -(void)save_figure:(id)sender
13071307
}
13081308
Py_ssize_t list_index = 0;
13091309
PyObject* list = PyList_New(m);
1310-
for (size_t state_index = 0; state_index < n; state_index++)
1310+
1311+
size_t state_index;
1312+
for (state_index = 0; state_index < n; state_index++)
13111313
{
13121314
if(states[state_index]==1)
13131315
{

0 commit comments

Comments
 (0)