mirror of
https://github.com/nginx/nginx.git
synced 2024-12-12 10:19:00 +08:00
fix building on 64-bit platforms, introduced in r3025
This commit is contained in:
parent
c287a9811e
commit
aa4bba5298
@ -693,7 +693,7 @@ ngx_copy_file(u_char *from, u_char *to, ngx_copy_file_t *cf)
|
|||||||
|
|
||||||
len = cf->buf_size ? cf->buf_size : 65536;
|
len = cf->buf_size ? cf->buf_size : 65536;
|
||||||
|
|
||||||
if (len > size) {
|
if ((off_t) len > size) {
|
||||||
len = (size_t) size;
|
len = (size_t) size;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -713,7 +713,7 @@ ngx_copy_file(u_char *from, u_char *to, ngx_copy_file_t *cf)
|
|||||||
|
|
||||||
while (size > 0) {
|
while (size > 0) {
|
||||||
|
|
||||||
if (len > size) {
|
if ((off_t) len > size) {
|
||||||
len = (size_t) size;
|
len = (size_t) size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user