]> git.kaiwu.me - nginx.git/commitdiff
fix building on 64-bit platforms, introduced in r3025
authorIgor Sysoev <igor@sysoev.ru>
Thu, 13 Aug 2009 13:48:41 +0000 (13:48 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Thu, 13 Aug 2009 13:48:41 +0000 (13:48 +0000)
src/core/ngx_file.c

index 3db728fb39a45f7ec69ac26f5836c517a00552d8..dff522674457804a5bfdfbd70714abf6a9d75654 100644 (file)
@@ -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;
         }