Mercurial > hg > nginx-quic
comparison src/os/unix/ngx_linux_sendfile_chain.c @ 1354:f69d1aab6a0f
make 64-bit ngx_int_t on 64-bit platforms
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 29 Jul 2007 18:24:53 +0000 |
parents | f4d6c84c69f9 |
children | 6f6d7ea70805 |
comparison
equal
deleted
inserted
replaced
1353:7443fbe0b013 | 1354:f69d1aab6a0f |
---|---|
60 } | 60 } |
61 | 61 |
62 | 62 |
63 /* the maximum limit size is 2G-1 - the page size */ | 63 /* the maximum limit size is 2G-1 - the page size */ |
64 | 64 |
65 if (limit == 0 || limit > NGX_SENDFILE_LIMIT - ngx_pagesize) { | 65 if (limit == 0 || limit > (off_t) (NGX_SENDFILE_LIMIT - ngx_pagesize)) { |
66 limit = NGX_SENDFILE_LIMIT - ngx_pagesize; | 66 limit = NGX_SENDFILE_LIMIT - ngx_pagesize; |
67 } | 67 } |
68 | 68 |
69 | 69 |
70 send = 0; | 70 send = 0; |