# HG changeset patch # User Igor Sysoev # Date 1220866417 0 # Node ID a83218b652451f435cc098066176b469a565ad3f # Parent ef8c6a957f094104b8d78a5f21180e3b9eeba0d1 fix building on 64-bit platforms, introduced in r2232 diff --git a/src/core/ngx_output_chain.c b/src/core/ngx_output_chain.c --- a/src/core/ngx_output_chain.c +++ b/src/core/ngx_output_chain.c @@ -331,7 +331,7 @@ ngx_output_chain_align_file_buf(ngx_outp if (size == 0) { - if (bsize >= ctx->bufs.size) { + if (bsize >= (off_t) ctx->bufs.size) { return NGX_DECLINED; } @@ -340,7 +340,7 @@ ngx_output_chain_align_file_buf(ngx_outp } else { size = 512 - size; - if (size > bsize) { + if ((off_t) size > bsize) { size = (size_t) bsize; } }