fix a couple of gcc 4.5 issues that Despair pointed out (I don't have it yet)

This commit is contained in:
Bill Currie 2010-05-27 12:21:50 +00:00 committed by Jeff Teunissen
parent 81e3a63791
commit c1b12ed6ec
2 changed files with 3 additions and 2 deletions

View file

@ -246,7 +246,8 @@ PR_Load_Source_File (progs_t *pr, const char *fname)
f->lines[++f->num_lines].text = l + 1;
}
}
f->lines[f->num_lines++].len = l - f->lines[f->num_lines].text;
f->lines[f->num_lines].len = l - f->lines[f->num_lines].text;
f->num_lines++;
f->pr = pr;
Hash_Add (file_hash, f);
return f;