Fix j2s generation issue #52

Merged
jordan merged 1 commit from lda/Cytoplasm:master into master 2024-09-02 18:38:05 +00:00
Showing only changes of commit 33139510b9 - Show all commits

View file

@ -563,11 +563,12 @@ Main(Array * args)
if (IsDelimited(fieldType, '{', '}') ||
IsDelimited(fieldType, '[', ']'))
{
char end = fieldType[strlen(fieldType) - 1];
fieldType[strlen(fieldType) - 1] = '\0';
StreamPrintf(headerFile, " %s /* of %s */ %s;\n", cType, fieldType + 1, field);
fieldType[strlen(fieldType)] = '}';
fieldType[strlen(fieldType)] = end;
}
else
{