Fixed codeStart issue

This commit is contained in:
2022-09-04 08:51:19 +01:00
parent 86061cb74e
commit d12ad4f60d
3 changed files with 9 additions and 8 deletions

View File

@@ -15,7 +15,7 @@ typedef struct Interpreter {
unsigned char* bytecode;
int length;
int count;
int codeStart; //for jumps
int codeStart; //BUGFIX: for jumps, must be initialized to -1
LiteralArray literalCache; //read-only - built from the bytecode, refreshed each time new bytecode is provided
//operation