From 4c4049574243575ceddf7e0e0a0516483d56f41f Mon Sep 17 00:00:00 2001 From: gingerBill Date: Mon, 21 Nov 2022 11:23:10 +0000 Subject: Fix #2188 --- src/types.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/types.cpp') 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; } -- cgit v1.2.3