From bc1b9893a747147dba1d47a8800bb9cb82fe7b3d Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 5 Dec 2024 16:11:59 +0900 Subject: [PATCH] [qfcc] Fix vector constructions from scalars Yet another bit of is_vector/is_nonscalar confusion. --- tools/qfcc/source/expr_construct.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/qfcc/source/expr_construct.c b/tools/qfcc/source/expr_construct.c index 5fbbb6caf..97f7914a4 100644 --- a/tools/qfcc/source/expr_construct.c +++ b/tools/qfcc/source/expr_construct.c @@ -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); } }