This commit is contained in:
gingerBill
2022-11-21 11:23:10 +00:00
parent 824b97d250
commit 4c40495742
2 changed files with 7 additions and 12 deletions
-6
View File
@@ -3916,13 +3916,7 @@ i64 type_size_of_internal(Type *t, TypePath *path) {
}
case Type_Matrix: {
bool pop = type_path_push(path, t->Matrix.elem);
if (path->failure) {
return FAILURE_SIZE;
}
i64 stride_in_bytes = matrix_type_stride_in_bytes(t, path);
if (pop) type_path_pop(path);
return stride_in_bytes * t->Matrix.column_count;
}