summaryrefslogtreecommitdiffhomepage
path: root/src/os/unix/ngx_aio_write_chain.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-11-07 13:54:40 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-11-07 13:54:40 +0000
commit1831fb16b7fd8c45e5fb012b06a82311eeae6061 (patch)
tree3d9de72454f4a059e5da0b8c3d4abbd03959bc0f /src/os/unix/ngx_aio_write_chain.c
parentce87ce477e9c349fbff1d30e3a45a8f0cc928ef6 (diff)
downloadnginx-1831fb16b7fd8c45e5fb012b06a82311eeae6061.tar.gz
nginx-1831fb16b7fd8c45e5fb012b06a82311eeae6061.tar.bz2
r1355, r1471, r1600 merge:
make 64-bit ngx_int_t on 64-bit platforms
Diffstat (limited to 'src/os/unix/ngx_aio_write_chain.c')
-rw-r--r--src/os/unix/ngx_aio_write_chain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/unix/ngx_aio_write_chain.c b/src/os/unix/ngx_aio_write_chain.c
index e3d663158..6a156e91b 100644
--- a/src/os/unix/ngx_aio_write_chain.c
+++ b/src/os/unix/ngx_aio_write_chain.c
@@ -21,7 +21,7 @@ ngx_aio_write_chain(ngx_connection_t *c, ngx_chain_t *in, off_t limit)
/* the maximum limit size is the maximum size_t value - the page size */
- if (limit == 0 || limit > NGX_MAX_SIZE_T_VALUE - ngx_pagesize) {
+ if (limit == 0 || limit > (off_t) (NGX_MAX_SIZE_T_VALUE - ngx_pagesize)) {
limit = NGX_MAX_SIZE_T_VALUE - ngx_pagesize;
}