comparison src/event/ngx_event_openssl.c @ 1619:e2ab812358bd stable-0.5

r1355, r1471, r1600 merge: make 64-bit ngx_int_t on 64-bit platforms
author Igor Sysoev <igor@sysoev.ru>
date Wed, 07 Nov 2007 13:54:40 +0000
parents efaf4d2b4d61
children 056347360e14
comparison
equal deleted inserted replaced
1618:fbf94b8341bf 1619:e2ab812358bd
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;