mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-14 00:40:55 +00:00
initialized locals aren't constant
This commit is contained in:
parent
0b44c78259
commit
99034fef27
1 changed files with 2 additions and 1 deletions
|
@ -424,7 +424,8 @@ opt_initializer
|
||||||
var_initializer
|
var_initializer
|
||||||
: '=' expr
|
: '=' expr
|
||||||
{
|
{
|
||||||
if (current_scope->type == sc_local) {
|
if (current_scope->type == sc_local
|
||||||
|
|| current_scope->type == sc_params) {
|
||||||
append_expr (local_expr,
|
append_expr (local_expr,
|
||||||
assign_expr (new_def_expr ($<def>0), $2));
|
assign_expr (new_def_expr ($<def>0), $2));
|
||||||
def_initialized ($<def>0);
|
def_initialized ($<def>0);
|
||||||
|
|
Loading…
Reference in a new issue