changeset 2794:92bd6afe8d9c

use off_t in $r->sendfile(), this allows to use 64-bit off_t on platforms where IV is long: *) on 64-bit platforms, *) and on 32-bit platforms if perl was built with -Duse64bitint
author Igor Sysoev <igor@sysoev.ru>
date Fri, 01 May 2009 19:31:52 +0000
parents 411653b73d7c
children d82d08314f78
files src/http/modules/perl/nginx.xs
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/http/modules/perl/nginx.xs
+++ b/src/http/modules/perl/nginx.xs
@@ -607,7 +607,7 @@ sendfile(r, filename, offset = -1, bytes
 
     ngx_http_request_t        *r;
     char                      *filename;
-    int                        offset;
+    off_t                      offset;
     size_t                     bytes;
     ngx_str_t                  path;
     ngx_buf_t                 *b;