Mercurial > hg > nginx
comparison src/http/modules/ngx_http_image_filter_module.c @ 2795:d82d08314f78
fix building ngx_http_image_filter_module on 64-bit platforms
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 04 May 2009 11:39:22 +0000 |
parents | a16ec9e1b4d1 |
children | 43fe53832da7 |
comparison
equal
deleted
inserted
replaced
2794:92bd6afe8d9c | 2795:d82d08314f78 |
---|---|
184 | 184 |
185 ngx_http_set_ctx(r, ctx, ngx_http_image_filter_module); | 185 ngx_http_set_ctx(r, ctx, ngx_http_image_filter_module); |
186 | 186 |
187 len = r->headers_out.content_length_n; | 187 len = r->headers_out.content_length_n; |
188 | 188 |
189 if (len != -1 && len > conf->buffer_size) { | 189 if (len != -1 && len > (off_t) conf->buffer_size) { |
190 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, | 190 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, |
191 "image filter: too big response: %O", len); | 191 "image filter: too big response: %O", len); |
192 | 192 |
193 return NGX_ERROR; | 193 return NGX_ERROR; |
194 } | 194 } |