diff options
author | Robert Bradshaw <robertwb@gmail.com> | 2017-06-29 15:34:21 -0700 |
---|---|---|
committer | Robert Bradshaw <robertwb@gmail.com> | 2017-06-29 15:34:21 -0700 |
commit | bc470e856af85ecbf52233d95406bd17a44c9b8c (patch) | |
tree | b012ed0bccf7d803b7535a9442a63bbfdb90ef4d /Cython/Utility/ModuleSetupCode.c | |
parent | 1b3c3171f906dc8874d714bf75fd0f6b5323511d (diff) | |
download | cython-bc470e856af85ecbf52233d95406bd17a44c9b8c.tar.gz |
Fix pedantic compiler error.
Diffstat (limited to 'Cython/Utility/ModuleSetupCode.c')
-rw-r--r-- | Cython/Utility/ModuleSetupCode.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Cython/Utility/ModuleSetupCode.c b/Cython/Utility/ModuleSetupCode.c index 43515c30f..d10aa3ffe 100644 --- a/Cython/Utility/ModuleSetupCode.c +++ b/Cython/Utility/ModuleSetupCode.c @@ -956,8 +956,9 @@ void __Pyx_FastGil_PyGILState_Release(PyGILState_STATE oldstate) { static void __Pyx_FastGilFuncInit0(void) { /* Try to detect autoTLSkey. */ + int key; void* this_thread_state = (void*) PyGILState_GetThisThreadState(); - for (int key = 0; key < 100; key++) { + for (key = 0; key < 100; key++) { if (PyThread_get_key_value(key) == this_thread_state) { __Pyx_FastGil_autoTLSkey = key; break; |