From e8aa0e1e26fbd222ff4a52a23ed0d270cb33c2fb Mon Sep 17 00:00:00 2001 From: Roberto De Ioris Date: Mon, 11 Mar 2013 20:51:08 +0100 Subject: [PATCH] fixed a typecasting --- plugins/python/pyloader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/python/pyloader.c b/plugins/python/pyloader.c index 60ea280a..616d4c55 100644 --- a/plugins/python/pyloader.c +++ b/plugins/python/pyloader.c @@ -305,7 +305,7 @@ int init_uwsgi_app(int loader, void *arg1, struct wsgi_request *wsgi_req, PyThre // cache most used values wi->error = PyFile_FromFile(stderr, "wsgi_errors", "w", NULL); - Py_INCREF(wi->error); + Py_INCREF((PyObject *)wi->error); wi->gateway_version = PyTuple_New(2); PyTuple_SetItem(wi->gateway_version, 0, PyInt_FromLong(1));