From f58f51294dd19fd2d89e9e046ac909958ff4f14d Mon Sep 17 00:00:00 2001 From: "roberto@debian32" Date: Sun, 11 Sep 2011 07:41:42 +0200 Subject: [PATCH] fixed sendfile typecasting --- plugins/python/uwsgi_pymodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/python/uwsgi_pymodule.c b/plugins/python/uwsgi_pymodule.c index ca2138f3..1223fb86 100644 --- a/plugins/python/uwsgi_pymodule.c +++ b/plugins/python/uwsgi_pymodule.c @@ -894,7 +894,7 @@ PyObject *py_uwsgi_advanced_sendfile(PyObject * self, PyObject * args) { ssize_t sf_len = uwsgi_sendfile(wsgi_req); if (sf_len > 0) { wsgi_req->response_size += sf_len; - while(wsgi_req->sendfile_fd_pos < wsgi_req->sendfile_fd_size) { + while((size_t)wsgi_req->sendfile_fd_pos < wsgi_req->sendfile_fd_size) { sf_len = uwsgi_sendfile(wsgi_req); if (sf_len <= 0) break; wsgi_req->response_size += sf_len;