diff src/core/ngx_output_chain.c @ 408:a2a3905c04ab NGINX_0_7_16

nginx 0.7.16 *) Bugfix: nginx could not be built on 64-bit platforms; the bug had appeared in 0.7.15.
author Igor Sysoev <http://sysoev.ru>
date Mon, 08 Sep 2008 00:00:00 +0400
parents 79c5df00501e
children a8e3f1441eec
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;
         }
     }