From: Igor Sysoev Date: Mon, 4 May 2009 11:39:22 +0000 (+0000) Subject: fix building ngx_http_image_filter_module on 64-bit platforms X-Git-Tag: release-0.7.55~15 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=e7b2f1809f59a06bd6eb8d120b89b72a63d85373;p=nginx.git fix building ngx_http_image_filter_module on 64-bit platforms --- diff --git a/src/http/modules/ngx_http_image_filter_module.c b/src/http/modules/ngx_http_image_filter_module.c index a5af1ac2e..10fefc549 100644 --- a/src/http/modules/ngx_http_image_filter_module.c +++ b/src/http/modules/ngx_http_image_filter_module.c @@ -186,7 +186,7 @@ ngx_http_image_header_filter(ngx_http_request_t *r) len = r->headers_out.content_length_n; - if (len != -1 && len > conf->buffer_size) { + if (len != -1 && len > (off_t) conf->buffer_size) { ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, "image filter: too big response: %O", len);