Mercurial > hg > nginx
diff src/core/ngx_file.c @ 3027:3e1b653fd22f
fix building on 64-bit platforms, introduced in r3025
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 13 Aug 2009 13:48:41 +0000 |
parents | 8101d9101ed8 |
children | 524ba56ba9f7 |
line wrap: on
line diff
--- a/src/core/ngx_file.c +++ b/src/core/ngx_file.c @@ -693,7 +693,7 @@ ngx_copy_file(u_char *from, u_char *to, len = cf->buf_size ? cf->buf_size : 65536; - if (len > size) { + if ((off_t) len > size) { len = (size_t) size; } @@ -713,7 +713,7 @@ ngx_copy_file(u_char *from, u_char *to, while (size > 0) { - if (len > size) { + if ((off_t) len > size) { len = (size_t) size; }