summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/gevent/gevent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/gevent/gevent.c b/plugins/gevent/gevent.c
index cc02e90b..b0d0c361 100644
--- a/plugins/gevent/gevent.c
+++ b/plugins/gevent/gevent.c
@@ -389,7 +389,7 @@ static void gil_gevent_get() {
}
static void gil_gevent_release() {
- PyGILState_Release((PyGILState_STATE) pthread_getspecific(up.upt_gil_key));
+ PyGILState_Release((PyGILState_STATE)(long) pthread_getspecific(up.upt_gil_key));
}
static void monkey_patch() {