fixed a bug

This commit is contained in:
2022-08-10 18:22:02 +01:00
parent 67f7b3e436
commit 380b7a3699
7 changed files with 31 additions and 10 deletions

View File

@@ -129,6 +129,12 @@ void printLiteralCustom(Literal literal, void (printFn)(const char*)) {
printToBuffer(":");
printLiteralCustom(ptr->entries[i].value, printToBuffer);
}
//empty dicts MUST have a ":" printed
if (ptr->count == 0) {
printToBuffer(":");
}
printToBuffer("]");
//swap the parent-call buffer back into place