diff --git a/python/py-matplotlib/files/patch-src-macosx.m.diff b/python/py-matplotlib/files/patch-src-macosx.m.diff
index 18dea4aa13..2b68c7f79f 100644
a
|
b
|
|
1 | | --- src/_macosx.m.orig 2015-11-29 10:44:55.000000000 -0700 |
2 | | +++ src/_macosx.m 2015-11-29 11:02:16.000000000 -0700 |
| 1 | --- src/_macosx.m.orig 2017-10-03 08:50:44.000000000 +0200 |
| 2 | +++ src/_macosx.m 2017-10-10 12:40:29.000000000 +0200 |
3 | 3 | @@ -1,5 +1,8 @@ |
4 | 4 | #include <Cocoa/Cocoa.h> |
5 | 5 | #include <ApplicationServices/ApplicationServices.h> |
… |
… |
|
8 | 8 | +#endif |
9 | 9 | #include <sys/socket.h> |
10 | 10 | #include <Python.h> |
11 | | #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION |
| 11 | |
| 12 | @@ -1319,7 +1322,8 @@ NavigationToolbar_get_active (Navigation |
| 13 | } |
| 14 | Py_ssize_t list_index = 0; |
| 15 | PyObject* list = PyList_New(m); |
| 16 | - for (size_t state_index = 0; state_index < n; state_index++) |
| 17 | + size_t state_index; |
| 18 | + for (state_index = 0; state_index < n; state_index++) |
| 19 | { |
| 20 | if(states[state_index]==1) |
| 21 | { |