commit | a19c7b5ad60700c1c83f84d01661a39145fb8d3c | [log] [tgz] |
---|---|---|
author | Igor Sysoev <igor@sysoev.ru> | Mon Sep 08 09:33:37 2008 +0000 |
committer | Igor Sysoev <igor@sysoev.ru> | Mon Sep 08 09:33:37 2008 +0000 |
tree | ac2ce7033838104eb2e79cd3391d43bce7c2c46f | |
parent | 196f9525514bff0ea34ac847e393ea37bb0e6dee [diff] |
fix building on 64-bit platforms, introduced in r2232
diff --git a/src/core/ngx_output_chain.c b/src/core/ngx_output_chain.c index e0f615e..3d5ae1d 100644 --- a/src/core/ngx_output_chain.c +++ b/src/core/ngx_output_chain.c
@@ -331,7 +331,7 @@ if (size == 0) { - if (bsize >= ctx->bufs.size) { + if (bsize >= (off_t) ctx->bufs.size) { return NGX_DECLINED; } @@ -340,7 +340,7 @@ } else { size = 512 - size; - if (size > bsize) { + if ((off_t) size > bsize) { size = (size_t) bsize; } }