]> git.kaiwu.me - nginx.git/commitdiff
fix building by msvc introduced in r2223
authorIgor Sysoev <igor@sysoev.ru>
Mon, 1 Sep 2008 15:17:54 +0000 (15:17 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Mon, 1 Sep 2008 15:17:54 +0000 (15:17 +0000)
src/core/ngx_conf_file.c

index c7e155c09eebd30097bf4b35ac0a644f93faf72d..d9683161be9e46d9d7b2d5d8d4765f6d6b6027ce 100644 (file)
@@ -508,7 +508,7 @@ ngx_conf_read_token(ngx_conf_t *cf)
                 ngx_memcpy(b->start, start, len);
             }
 
-            size = file_size - cf->conf_file->file.offset;
+            size = (ssize_t) (file_size - cf->conf_file->file.offset);
 
             if (size > b->end - (b->start + len)) {
                 size = b->end - (b->start + len);