extended lexer, fixed table shrinking

This commit is contained in:
2020-11-25 23:34:02 -06:00
parent bb11b3b309
commit 0745fd10a9
6 changed files with 78 additions and 7 deletions

View File

@@ -44,7 +44,7 @@ int addConstant(CState* state, CChunk *chunk, CValue value) {
cosmoM_freezeGC(state); // so our GC doesn't free it
appendValArray(state, &chunk->constants, value);
cosmoM_unfreezeGC(state);
cosmoM_unfreezeGC(state);
return chunk->constants.count - 1; // return the index of the new constants
}