aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-06-12 12:40:29 +0100
committergingerBill <bill@gingerbill.org>2024-06-12 12:40:29 +0100
commitf57c03c1707f48608bcb3bc87aeee91af60e6d63 (patch)
tree92a05ab91aad7ea31e7de07ab4a31bf86fdce6ae /src/check_expr.cpp
parentcb45aa58fd11e6395bb5e960c5b78c817a0aff36 (diff)
Improve matrix type hinting rules a little
Diffstat (limited to 'src/check_expr.cpp')
-rw-r--r--src/check_expr.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp
index 01cba881e..742909701 100644
--- a/src/check_expr.cpp
+++ b/src/check_expr.cpp
@@ -3568,6 +3568,8 @@ gb_internal void check_binary_matrix(CheckerContext *c, Token const &op, Operand
// prefer the named type
x->type = y->type;
}
+ // finish
+ return;
} else {
bool is_row_major = xt->Matrix.is_row_major && yt->Matrix.is_row_major;
x->type = alloc_type_matrix(xt->Matrix.elem, xt->Matrix.row_count, yt->Matrix.column_count, nullptr, nullptr, is_row_major);