Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-08-13 17:48:41 +0400
committerIgor Sysoev <igor@sysoev.ru>2009-08-13 17:48:41 +0400
commitaa4bba52987688fa8acbee5cf052718e952b1256 (patch)
treee97ec2173bfd06549771e9ffdfb0e83a1f875329
parentc287a9811e85964065b437fd599f4da784b97675 (diff)
fix building on 64-bit platforms, introduced in r3025
-rw-r--r--src/core/ngx_file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/ngx_file.c b/src/core/ngx_file.c
index 3db728fb3..dff522674 100644
--- 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, ngx_copy_file_t *cf)
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, ngx_copy_file_t *cf)
while (size > 0) {
- if (len > size) {
+ if ((off_t) len > size) {
len = (size_t) size;
}