aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-08-21 11:05:11 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-08-21 11:05:11 +0000
commit45d056a7887eaea0544bb93e911b05467e773b08 (patch)
treede12448dfe7a5561973435c90f443797f088405a /src
parent93c3755e26353e7a736634bf7b32b86586fa30ae (diff)
downloadnginx-45d056a7887eaea0544bb93e911b05467e773b08.tar.gz
nginx-45d056a7887eaea0544bb93e911b05467e773b08.zip
fix build on amd64
Diffstat (limited to 'src')
-rw-r--r--src/http/ngx_http_write_filter_module.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/http/ngx_http_write_filter_module.c b/src/http/ngx_http_write_filter_module.c
index b1796645e..e5a26f003 100644
--- a/src/http/ngx_http_write_filter_module.c
+++ b/src/http/ngx_http_write_filter_module.c
@@ -251,7 +251,8 @@ ngx_http_write_filter(ngx_http_request_t *r, ngx_chain_t *in)
} else if (c->write->ready
&& clcf->sendfile_max_chunk
- && c->sent - sent >= clcf->sendfile_max_chunk - 2 * ngx_pagesize)
+ && (size_t) (c->sent - sent)
+ >= clcf->sendfile_max_chunk - 2 * ngx_pagesize)
{
c->write->delayed = 1;
ngx_add_timer(c->write, 1);