[qfcc] Return correct type for non-scalar unary ops

At least, for non-constants. Constants are still broken (badly,
actually).
This commit is contained in:
Bill Currie 2024-10-26 13:44:49 +09:00
parent 295cc0e0b2
commit 8ac4716f67

View file

@ -492,6 +492,10 @@ unary_expr (int op, const expr_t *e)
auto result_type = t;
if (unary_type->result_type) {
result_type = unary_type->result_type;
if (!is_handle (t)) {
result_type = matrix_type (result_type,
type_cols (t), type_rows (t));
}
}
if (result_type == &type_bool) {
//FIXME support bool properly