From cf0c445a141a84504e7ac0bdab34c651512ec89a Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 1 Sep 2008 15:17:54 +0000 Subject: [PATCH] fix building by msvc introduced in r2223 --- src/core/ngx_conf_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/ngx_conf_file.c b/src/core/ngx_conf_file.c index c7e155c09..d9683161b 100644 --- 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);