fix building on 64-bit platforms, introduced in r2232

This commit is contained in:
Igor Sysoev 2008-09-08 09:33:37 +00:00
parent 196f952551
commit a19c7b5ad6

View File

@ -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;
}
}