]> git.kaiwu.me - nginx.git/commitdiff
use off_t in $r->sendfile(), this allows to use 64-bit off_t on platforms
authorIgor Sysoev <igor@sysoev.ru>
Fri, 1 May 2009 19:31:52 +0000 (19:31 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Fri, 1 May 2009 19:31:52 +0000 (19:31 +0000)
where IV is long:
*) on 64-bit platforms,
*) and on 32-bit platforms if perl was built with -Duse64bitint

src/http/modules/perl/nginx.xs

index 66b0f59b2ed0ae0078c3103b8bf77dd2658b04cb..077cf0ddf8026103050630aea1c3d655057646c1 100644 (file)
@@ -607,7 +607,7 @@ sendfile(r, filename, offset = -1, bytes = 0)
 
     ngx_http_request_t        *r;
     char                      *filename;
-    int                        offset;
+    off_t                      offset;
     size_t                     bytes;
     ngx_str_t                  path;
     ngx_buf_t                 *b;