Mercurial > hg > nginx
changeset 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 | f4b5c787fe33 |
children | a40f8475511d |
files | src/core/ngx_file.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/core/ngx_file.c Thu Aug 13 08:40:25 2009 +0000 +++ b/src/core/ngx_file.c Thu Aug 13 13:48:41 2009 +0000 @@ -693,7 +693,7 @@ len = cf->buf_size ? cf->buf_size : 65536; - if (len > size) { + if ((off_t) len > size) { len = (size_t) size; } @@ -713,7 +713,7 @@ while (size > 0) { - if (len > size) { + if ((off_t) len > size) { len = (size_t) size; }