mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-28 23:22:43 +00:00
[qfcc] Fix @dot for vecN types
The change from @dot producing a vector to producing a scalar missed basic vecN types.
This commit is contained in:
parent
cb72769aa9
commit
ea375a4e2f
1 changed files with 6 additions and 0 deletions
|
@ -1216,6 +1216,12 @@ binary_expr (int op, expr_t *e1, expr_t *e2)
|
|||
if (is_compare (op)) {
|
||||
t1 = int_type (t1);
|
||||
}
|
||||
if (op == DOT) {
|
||||
if (!is_real (t1)) {
|
||||
return invalid_binary_expr (op, e1, e2);
|
||||
}
|
||||
t1 = base_type (t1);
|
||||
}
|
||||
e->e.expr.type = t1;
|
||||
return e;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue