mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-25 13:11:00 +00:00
[qfcc] Handle type function parameters in type functions
The code assumed an actual type reference, not a type function, resulting in a segfault for `@vector(bool,@width(vec))`.
This commit is contained in:
parent
cd7abf5320
commit
8f9785c3da
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ check_int (const expr_t *arg)
|
||||||
&& arg->type != ex_type) {
|
&& arg->type != ex_type) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
int op = arg->symbol->expr->typ.op;
|
int op = arg->type ? arg->typ.op : arg->symbol->expr->typ.op;
|
||||||
if (op != QC_AT_WIDTH && op != QC_AT_ROWS && op != QC_AT_COLS) {
|
if (op != QC_AT_WIDTH && op != QC_AT_ROWS && op != QC_AT_COLS) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue