Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ÐÁÔÞ ÄÌÑ ÓÂÏÒËÉ nginx-0.3. 53 ÎÁ amd64
éÇÏÒØ óÙÓÏÅ×
http://sysoev.ru --- src/http/ngx_http_request_body.c Fri Jul 7 17:34:30 2006
+++ src/http/ngx_http_request_body.c Sat Jul 8 09:37:55 2006
@@ -92,7 +92,7 @@
rb->bufs->buf = b;
rb->bufs->next = NULL;
- if (preread >= r->headers_in.content_length_n) {
+ if ((off_t) preread >= r->headers_in.content_length_n) {
/* the whole request body was pre-read */
@@ -120,7 +120,7 @@
rb->rest = r->headers_in.content_length_n - preread;
- if (rb->rest <= (size_t) (b->end - b->last)) {
+ if (rb->rest <= (off_t) (b->end - b->last)) {
/* the whole request body may be placed in r->header_in */
@@ -242,7 +242,7 @@
size = rb->buf->end - rb->buf->last;
- if (size > rb->rest) {
+ if ((off_t) size > rb->rest) {
size = (size_t) rb->rest;
}
|