changeset 2240:a83218b65245

fix building on 64-bit platforms, introduced in r2232
author Igor Sysoev <igor@sysoev.ru>
date Mon, 08 Sep 2008 09:33:37 +0000
parents ef8c6a957f09
children eab2e87deba7
files src/core/ngx_output_chain.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;
         }
     }