Skip to content

Commit 64d2714

Browse files
committed
Fixed a problem with declaring new types that are arrays of objects
1 parent a51e5ce commit 64d2714

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Version 6.1.6
22
- Added ability to double quote to include quotes in literal BASIC strings
33
- Allowed BASIC string constants to initialize other consts
4+
- Fixed a problem with declaring new types that are arrays of objects
45
- Implemented flush() for FATFS files (thanks to Ada)
56
- Improved some error messages
67
- In C++ output, treat unknown types in prints as generic

spinc.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,9 @@ int
247247
CheckedTypeSize(AST *type)
248248
{
249249
Module *P;
250+
if (IsArrayType(type)) {
251+
type = BaseType(type);
252+
}
250253
if (IsClassType(type)) {
251254
P = GetClassPtr(type);
252255
if (P && P->pendingvarblock) {

0 commit comments

Comments
 (0)