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].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; f->pr = pr;
Hash_Add (file_hash, f); Hash_Add (file_hash, f);
return f; return f;

View file

@ -355,7 +355,7 @@ PR_ExecuteProgram (progs_t * pr, func_t fnum)
dstatement_t *st; dstatement_t *st;
edict_t *ed; edict_t *ed;
pr_type_t *ptr; pr_type_t *ptr;
pr_type_t old_val, *watch = 0; pr_type_t old_val = {0}, *watch = 0;
// make a stack frame // make a stack frame
exitdepth = pr->pr_depth; exitdepth = pr->pr_depth;