fix building ngx_http_image_filter_module on 64-bit platforms

This commit is contained in:
Igor Sysoev 2009-05-04 11:39:22 +00:00
parent 7e6d4179f0
commit 4ae910a756

View file

@ -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);