comparison src/event/ngx_event_openssl.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 e958b3cab51a
children 24778e7450af
comparison
equal deleted inserted replaced
1353:7443fbe0b013 1354:f69d1aab6a0f
782 } 782 }
783 783
784 784
785 /* the maximum limit size is the maximum uint32_t value - the page size */ 785 /* the maximum limit size is the maximum uint32_t value - the page size */
786 786
787 if (limit == 0 || limit > NGX_MAX_UINT32_VALUE - ngx_pagesize) { 787 if (limit == 0 || limit > (off_t) (NGX_MAX_UINT32_VALUE - ngx_pagesize)) {
788 limit = NGX_MAX_UINT32_VALUE - ngx_pagesize; 788 limit = NGX_MAX_UINT32_VALUE - ngx_pagesize;
789 } 789 }
790 790
791 791
792 buf = c->ssl->buf; 792 buf = c->ssl->buf;