mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-24 22:54:59 -07:00
Update alignment rules for matrix types as a compromise to keep zero padding
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user