fixed a typecasting

This commit is contained in:
Roberto De Ioris
2013-03-11 20:51:08 +01:00
parent 46a8aae908
commit e8aa0e1e26
+1 -1
View File
@@ -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));