mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-29 20:20:43 +00:00
d'oh, forgot about "default"
This commit is contained in:
parent
e9b117379f
commit
a45223da6c
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ case_label_expr (switch_block_t *switch_block, expr_t *value)
|
|||
|
||||
if (value)
|
||||
convert_name (value);
|
||||
if (value->type == ex_def && value->e.def->constant)
|
||||
if (value && value->type == ex_def && value->e.def->constant)
|
||||
value = constant_expr (value);
|
||||
if (value && value->type < ex_string) {
|
||||
error (value, "non-constant case value");
|
||||
|
|
Loading…
Reference in a new issue