Mercurial > hg > nginx-quic
diff src/http/ngx_http_output_filter.c @ 98:c9b243802a17
nginx-0.0.1-2003-05-30-18:27:59 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 30 May 2003 14:27:59 +0000 |
parents | a23d010f356d |
children | a059e1aa65d4 |
line wrap: on
line diff
--- a/src/http/ngx_http_output_filter.c +++ b/src/http/ngx_http_output_filter.c @@ -119,7 +119,7 @@ int ngx_http_output_filter(ngx_http_requ if (hunk->type & NGX_HUNK_IN_MEMORY) { size = hunk->last - hunk->pos; } else { - size = hunk->file_last - hunk->file_pos; + size = (size_t) (hunk->file_last - hunk->file_pos); } if (size > conf->hunk_size) { @@ -201,8 +201,8 @@ int ngx_http_output_filter(ngx_http_requ size = ctx->incoming->hunk->last - ctx->incoming->hunk->pos; } else { - size = ctx->incoming->hunk->file_last - - ctx->incoming->hunk->file_pos; + size = (size_t) (ctx->incoming->hunk->file_last + - ctx->incoming->hunk->file_pos); } /* delete the completed hunk from the incoming chain */ @@ -241,7 +241,7 @@ static int ngx_http_output_filter_copy_h if (src->type & NGX_HUNK_IN_MEMORY) { size = src->last - src->pos; } else { - size = src->file_last - src->file_pos; + size = (size_t) (src->file_last - src->file_pos); } if (size > (dst->end - dst->pos)) {