aboutsummaryrefslogtreecommitdiff
path: root/src/check_builtin.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-10-25 00:46:50 +0100
committergingerBill <bill@gingerbill.org>2021-10-25 00:46:50 +0100
commit306bdf8869f2c9676e73acbf477a302c08137087 (patch)
tree29c2ffeb7c00008bf44b83ef2a0ca55abcbbb153 /src/check_builtin.cpp
parent7a29f6cff0037ea9b90c0ec3f58fe62a68c2e971 (diff)
Update alignment rules for `matrix` types as a compromise to keep zero padding
Diffstat (limited to 'src/check_builtin.cpp')
-rw-r--r--src/check_builtin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/check_builtin.cpp b/src/check_builtin.cpp
index 9b94be002..2373317c3 100644
--- a/src/check_builtin.cpp
+++ b/src/check_builtin.cpp
@@ -2083,8 +2083,8 @@ bool check_builtin_procedure(CheckerContext *c, Operand *operand, Ast *call, i32
}
i64 max_count = xt->Array.count*yt->Array.count;
- if (max_count > MAX_MATRIX_ELEMENT_COUNT) {
- error(call, "Product of the array lengths exceed the maximum matrix element count, got %d, expected a maximum of %d", cast(int)max_count, MAX_MATRIX_ELEMENT_COUNT);
+ if (max_count > MATRIX_ELEMENT_COUNT_MAX) {
+ error(call, "Product of the array lengths exceed the maximum matrix element count, got %d, expected a maximum of %d", cast(int)max_count, MATRIX_ELEMENT_COUNT_MAX);
return false;
}