mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-31 08:41:11 +00:00
resolve the case value before checking its type
This commit is contained in:
parent
20eec42a93
commit
f2d097c013
2 changed files with 4 additions and 0 deletions
|
@ -77,7 +77,10 @@ case_label_expr (switch_block_t *switch_block, expr_t *value)
|
|||
if (!cl)
|
||||
Sys_Error ("case_label_expr: Memory Allocation Failure\n");
|
||||
|
||||
if (value)
|
||||
convert_name (value);
|
||||
if (value && value->type < ex_string) {
|
||||
print_expr (value);puts("");
|
||||
error (value, "non-constant case value");
|
||||
free (cl);
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue