[qfcc] Fix vector constructions from scalars

Yet another bit of is_vector/is_nonscalar confusion.
This commit is contained in:
Bill Currie 2024-12-05 16:11:59 +09:00
parent ec436ee65e
commit bc1b9893a7

View file

@ -257,7 +257,7 @@ math_constructor (const type_t *type, const expr_t *params, const expr_t *e)
if (is_matrix (type)) {
return construct_diagonal (type, param_exprs[0], e);
}
if (is_vector (type)) {
if (is_nonscalar (type)) {
return construct_broadcast (type, param_exprs[0], e);
}
}