mirror of
https://github.com/nginx/nginx.git
synced 2025-06-12 13:42:55 +08:00
fix building on 64-bit platforms, introduced in r2232
This commit is contained in:
parent
196f952551
commit
a19c7b5ad6
@ -331,7 +331,7 @@ ngx_output_chain_align_file_buf(ngx_output_chain_ctx_t *ctx, off_t bsize)
|
|||||||
|
|
||||||
if (size == 0) {
|
if (size == 0) {
|
||||||
|
|
||||||
if (bsize >= ctx->bufs.size) {
|
if (bsize >= (off_t) ctx->bufs.size) {
|
||||||
return NGX_DECLINED;
|
return NGX_DECLINED;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -340,7 +340,7 @@ ngx_output_chain_align_file_buf(ngx_output_chain_ctx_t *ctx, off_t bsize)
|
|||||||
} else {
|
} else {
|
||||||
size = 512 - size;
|
size = 512 - size;
|
||||||
|
|
||||||
if (size > bsize) {
|
if ((off_t) size > bsize) {
|
||||||
size = (size_t) bsize;
|
size = (size_t) bsize;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user