diff src/os/unix/ngx_solaris_sendfilev_chain.c @ 1182:df449f4a8032

fix sendfile on 64-bit Linux and limit_rate on all 64-bit platforms for 2G+ files
author Igor Sysoev <igor@sysoev.ru>
date Mon, 23 Apr 2007 21:32:13 +0000
parents 9262f520ce21
children f69d1aab6a0f
line wrap: on
line diff
--- a/src/os/unix/ngx_solaris_sendfilev_chain.c
+++ b/src/os/unix/ngx_solaris_sendfilev_chain.c
@@ -135,7 +135,7 @@ ngx_solaris_sendfilev_chain(ngx_connecti
                     size = limit - send;
 
                     aligned = (cl->buf->file_pos + size + ngx_pagesize - 1)
-                                                      & ~(ngx_pagesize - 1);
+                               & ~((off_t) ngx_pagesize - 1);
 
                     if (aligned <= cl->buf->file_last) {
                         size = aligned - cl->buf->file_pos;