]> git.kaiwu.me - nginx.git/commitdiff
fix build on amd64
authorIgor Sysoev <igor@sysoev.ru>
Tue, 21 Aug 2007 11:05:11 +0000 (11:05 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Tue, 21 Aug 2007 11:05:11 +0000 (11:05 +0000)
src/http/ngx_http_write_filter_module.c

index b1796645e1019de427af5817d049378724e8a1ad..e5a26f00304cce520d38f8def335fd5161504ea6 100644 (file)
@@ -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);