diff options
| author | gingerBill <bill@gingerbill.org> | 2021-10-19 11:31:11 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-10-19 11:31:11 +0100 |
| commit | 1556fad65a52af7683d5c80f2f724ef252525163 (patch) | |
| tree | 565b7327f9ae66e692641c2ef5659d11f9e091fc /src/types.cpp | |
| parent | 243e2e2b8a7566087375178a66b25b5d9ac9a356 (diff) | |
Change syntax for matrices to `matrix[R, C]T`
Diffstat (limited to 'src/types.cpp')
| -rw-r--r-- | src/types.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/types.cpp b/src/types.cpp index 8bce69cf3..8e64a10c1 100644 --- a/src/types.cpp +++ b/src/types.cpp @@ -3956,9 +3956,7 @@ gbString write_type_to_string(gbString str, Type *type) { break; case Type_Matrix: - str = gb_string_appendc(str, gb_bprintf("[%d", cast(int)type->Matrix.row_count)); - str = gb_string_appendc(str, "; "); - str = gb_string_appendc(str, gb_bprintf("%d]", cast(int)type->Matrix.column_count)); + str = gb_string_appendc(str, gb_bprintf("matrix[%d, %d]", cast(int)type->Matrix.row_count, cast(int)type->Matrix.column_count)); str = write_type_to_string(str, type->Matrix.elem); break; } |