comparison 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
comparison
equal deleted inserted replaced
2225:207827f7bf71 2226:7f3e1c63606b
506 506
507 if (len) { 507 if (len) {
508 ngx_memcpy(b->start, start, len); 508 ngx_memcpy(b->start, start, len);
509 } 509 }
510 510
511 size = file_size - cf->conf_file->file.offset; 511 size = (ssize_t) (file_size - cf->conf_file->file.offset);
512 512
513 if (size > b->end - (b->start + len)) { 513 if (size > b->end - (b->start + len)) {
514 size = b->end - (b->start + len); 514 size = b->end - (b->start + len);
515 } 515 }
516 516