Mercurial > hg > nginx
comparison src/os/unix/ngx_writev_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 | 9262f520ce21 |
children | 6f6d7ea70805 |
comparison
equal
deleted
inserted
replaced
1353:7443fbe0b013 | 1354:f69d1aab6a0f |
---|---|
46 | 46 |
47 #endif | 47 #endif |
48 | 48 |
49 /* the maximum limit size is the maximum size_t value - the page size */ | 49 /* the maximum limit size is the maximum size_t value - the page size */ |
50 | 50 |
51 if (limit == 0 || limit > NGX_MAX_SIZE_T_VALUE - ngx_pagesize) { | 51 if (limit == 0 || limit > (off_t) (NGX_MAX_SIZE_T_VALUE - ngx_pagesize)) { |
52 limit = NGX_MAX_SIZE_T_VALUE - ngx_pagesize; | 52 limit = NGX_MAX_SIZE_T_VALUE - ngx_pagesize; |
53 } | 53 } |
54 | 54 |
55 send = 0; | 55 send = 0; |
56 complete = 0; | 56 complete = 0; |