# HG changeset patch # User Igor Sysoev # Date 1187694311 0 # Node ID 97668157b352aa258731ff69a47804ca8c87d2a4 # Parent a7beefaad711a9a39aceca782fd6e57b546a292b fix build on amd64 diff -r a7beefaad711 -r 97668157b352 src/http/ngx_http_write_filter_module.c --- a/src/http/ngx_http_write_filter_module.c Mon Aug 20 13:10:25 2007 +0000 +++ b/src/http/ngx_http_write_filter_module.c Tue Aug 21 11:05:11 2007 +0000 @@ -251,7 +251,8 @@ } 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);