Commit bc470e85 authored by Robert Bradshaw's avatar Robert Bradshaw

Fix pedantic compiler error.

parent 1b3c3171
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment