comparison src/os/unix/ngx_aio_write_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 4d9ea73a627a
children a1d54c705f38
comparison
equal deleted inserted replaced
1353:7443fbe0b013 1354:f69d1aab6a0f
19 ssize_t n, size; 19 ssize_t n, size;
20 ngx_chain_t *cl; 20 ngx_chain_t *cl;
21 21
22 /* the maximum limit size is the maximum size_t value - the page size */ 22 /* the maximum limit size is the maximum size_t value - the page size */
23 23
24 if (limit == 0 || limit > NGX_MAX_SIZE_T_VALUE - ngx_pagesize) { 24 if (limit == 0 || limit > (off_t) (NGX_MAX_SIZE_T_VALUE - ngx_pagesize)) {
25 limit = NGX_MAX_SIZE_T_VALUE - ngx_pagesize; 25 limit = NGX_MAX_SIZE_T_VALUE - ngx_pagesize;
26 } 26 }
27 27
28 send = 0; 28 send = 0;
29 sent = 0; 29 sent = 0;