From a19c7b5ad60700c1c83f84d01661a39145fb8d3c Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 8 Sep 2008 09:33:37 +0000 Subject: [PATCH] fix building on 64-bit platforms, introduced in r2232 --- src/core/ngx_output_chain.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/ngx_output_chain.c b/src/core/ngx_output_chain.c index e0f615e5b..3d5ae1db5 100644 --- 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_output_chain_ctx_t *ctx, off_t bsize) 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_output_chain_ctx_t *ctx, off_t bsize) } else { size = 512 - size; - if (size > bsize) { + if ((off_t) size > bsize) { size = (size_t) bsize; } }