diff options
| author | gingerBill <bill@gingerbill.org> | 2022-11-21 11:23:10 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2022-11-21 11:23:10 +0000 |
| commit | 4c4049574243575ceddf7e0e0a0516483d56f41f (patch) | |
| tree | 4d002ab8c5c0950b82ef6093e77613a5796cf351 /src/types.cpp | |
| parent | 824b97d250dd14f93c0aa0cab058aa0cda25c823 (diff) | |
Fix #2188
Diffstat (limited to 'src/types.cpp')
| -rw-r--r-- | src/types.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/types.cpp b/src/types.cpp index b7bfe1b0f..516096743 100644 --- a/src/types.cpp +++ b/src/types.cpp @@ -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; } |