]> git.kaiwu.me - nginx.git/commitdiff
fix building ngx_http_image_filter_module on 64-bit platforms
authorIgor Sysoev <igor@sysoev.ru>
Mon, 4 May 2009 11:39:22 +0000 (11:39 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Mon, 4 May 2009 11:39:22 +0000 (11:39 +0000)
src/http/modules/ngx_http_image_filter_module.c

index a5af1ac2e0b18690f7e067b15a484032a72bbf04..10fefc5490ba6ec3e8d00c543e9cbdd1fc2c7034 100644 (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);