summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo Magliocchetti <riccardo.magliocchetti@gmail.com>2021-04-18 21:24:45 +0200
committerGitHub <noreply@github.com>2021-04-18 21:24:45 +0200
commitd58a832c81c2c96ae0f6e72614e1cc47f4b5d332 (patch)
tree962b534ddb91b46fca2b37022d88f8bf5a0171f2
parent793bf9392122512855146b61539f5cc8a7572376 (diff)
parente95cad95a8f3141efdff425e3c8f05723170b64e (diff)
downloaduwsgi-d58a832c81c2c96ae0f6e72614e1cc47f4b5d332.tar.gz
Merge pull request #2306 from xrmx/karolyi-patch-1
plugins/gevent: fix compilation with clang11
-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() {