diff src/core/ngx_conf_file.c @ 2226:7f3e1c63606b

fix building by msvc introduced in r2223
author Igor Sysoev <igor@sysoev.ru>
date Mon, 01 Sep 2008 15:17:54 +0000
parents d200fbe9aa81
children 2abf14c952a2
line wrap: on
line diff
--- a/src/core/ngx_conf_file.c
+++ b/src/core/ngx_conf_file.c
@@ -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);