mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 14:20:59 +00:00
[qfcc] Fix handling of nil for static initializers
nil is most definitely constant.
This commit is contained in:
parent
9dbc81432a
commit
de06efa604
1 changed files with 4 additions and 1 deletions
|
@ -463,7 +463,10 @@ init_elements (struct def_s *def, expr_t *eles)
|
|||
if (element->expr) {
|
||||
c = constant_expr (element->expr);
|
||||
} else {
|
||||
c = convert_nil (new_nil_expr (), element->type);
|
||||
c = new_nil_expr ();
|
||||
}
|
||||
if (c->type == ex_nil) {
|
||||
c = convert_nil (c, element->type);
|
||||
}
|
||||
dummy.offset = def->offset + element->offset;
|
||||
g = D_POINTER (pr_type_t, &dummy);
|
||||
|
|
Loading…
Reference in a new issue