mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
Fix type handling for local variables.
This commit is contained in:
parent
952a02eb23
commit
ff70177041
1 changed files with 5 additions and 1 deletions
|
@ -737,7 +737,11 @@ decl
|
|||
: function_decl
|
||||
| var_decl opt_initializer
|
||||
{
|
||||
initialize_def ($1, $<spec>0.type, $2, current_symtab->space,
|
||||
specifier_t spec = $<spec>0;
|
||||
type_t *type;
|
||||
|
||||
type = find_type (append_type ($1->type, spec.type));
|
||||
initialize_def ($1, type, $2, current_symtab->space,
|
||||
$<spec>0.storage);
|
||||
}
|
||||
;
|
||||
|
|
Loading…
Reference in a new issue