diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2009-08-28 11:46:12 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2009-08-28 11:46:12 +0000 |
| commit | 6ef7e772a9420b4e740b43a183226e27bd2b4b37 (patch) | |
| tree | c2188943e212786c81f202dc75d68b1e63514440 | |
| parent | 8b8e995eb89d881a09dad054915bf09f7de01555 (diff) | |
| download | nginx-6ef7e772a9420b4e740b43a183226e27bd2b4b37.tar.gz nginx-6ef7e772a9420b4e740b43a183226e27bd2b4b37.tar.bz2 | |
fix build by msvc, introduced in r3054
| -rw-r--r-- | src/core/ngx_output_chain.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/ngx_output_chain.c b/src/core/ngx_output_chain.c index 592f14aaf..0e3925812 100644 --- a/src/core/ngx_output_chain.c +++ b/src/core/ngx_output_chain.c @@ -346,7 +346,7 @@ ngx_output_chain_align_file_buf(ngx_output_chain_ctx_t *ctx, off_t bsize) size = (size_t) bsize; } else { - size = ctx->alignment - size; + size = (size_t) ctx->alignment - size; if ((off_t) size > bsize) { size = (size_t) bsize; @@ -421,7 +421,7 @@ ngx_output_chain_get_buf(ngx_output_chain_ctx_t *ctx, off_t bsize) * userland buffer direct usage conjunctly with directio */ - b->start = ngx_pmemalign(ctx->pool, size, ctx->alignment); + b->start = ngx_pmemalign(ctx->pool, size, (size_t) ctx->alignment); if (b->start == NULL) { return NGX_ERROR; } |
