mirror of
https://github.com/nginx/nginx.git
synced 2026-06-14 20:10:00 -04:00
fix build by msvc, introduced in r3054
This commit is contained in:
parent
8b8e995eb8
commit
6ef7e772a9
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue