Merge pull request 'Fix j2s generation issue' (#52) from lda/Cytoplasm:master into master

Reviewed-on: Telodendria/Cytoplasm#52
This commit is contained in:
Jordan Bancino 2024-09-02 14:38:02 -04:00
commit 9c6781c458

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
{