]> git.kaiwu.me - nginx.git/commitdiff
fix building on 64-bit platforms, introduced in r2232
authorIgor Sysoev <igor@sysoev.ru>
Mon, 8 Sep 2008 09:33:37 +0000 (09:33 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Mon, 8 Sep 2008 09:33:37 +0000 (09:33 +0000)
src/core/ngx_output_chain.c

index e0f615e5bbe84c37553f551f5fc6fd15c0dd9530..3d5ae1db5e50efdfa8a86b794cebee615ed4ac73 100644 (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;
         }
     }