[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:
Bill Currie 2023-09-14 21:29:59 +09:00
parent cb72769aa9
commit ea375a4e2f
1 changed files with 6 additions and 0 deletions

View File

@ -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;
}