mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-19 07:20:50 +00:00
[qfcc] Use local_expr only for local variables
ie, not function-scope static variables.
This commit is contained in:
parent
1205c935d0
commit
c7da999b6a
1 changed files with 1 additions and 1 deletions
|
@ -597,7 +597,7 @@ initialize_def (symbol_t *sym, expr_t *init, defspace_t *space,
|
|||
error (init, "type mismatch in initializer");
|
||||
return;
|
||||
}
|
||||
if (local_expr) {
|
||||
if (storage == sc_local && local_expr) {
|
||||
sym->s.def->initialized = 1;
|
||||
init = assign_expr (new_symbol_expr (sym), init);
|
||||
// fold_constants takes care of int/float conversions
|
||||
|
|
Loading…
Reference in a new issue