mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
fix a couple of gcc 4.5 issues that Despair pointed out (I don't have it yet)
This commit is contained in:
parent
81e3a63791
commit
c1b12ed6ec
2 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -355,7 +355,7 @@ PR_ExecuteProgram (progs_t * pr, func_t fnum)
|
|||
dstatement_t *st;
|
||||
edict_t *ed;
|
||||
pr_type_t *ptr;
|
||||
pr_type_t old_val, *watch = 0;
|
||||
pr_type_t old_val = {0}, *watch = 0;
|
||||
|
||||
// make a stack frame
|
||||
exitdepth = pr->pr_depth;
|
||||
|
|
Loading…
Reference in a new issue