Fixed a string comparison bug

This commit is contained in:
2022-08-05 17:11:21 +01:00
parent 8f2ba5cd50
commit bfaf4e83bb
5 changed files with 15 additions and 12 deletions

View File

@@ -176,7 +176,7 @@ void dissectBytecode(const char* tb, int size) {
break;
case LITERAL_STRING: {
const s = printString(tb, &count);
const char* s = printString(tb, &count);
printf("(string)");
}
break;
@@ -190,7 +190,7 @@ void dissectBytecode(const char* tb, int size) {
//code
printf("--bytecode--\n");
while(tb[count] != OP_EOF) {
const opcode = printByte(tb, &count);
const unsigned char opcode = printByte(tb, &count);
switch (opcode) {
case OP_PRINT: