OP_NEWOBJECT uses long operand

This commit is contained in:
2020-11-18 14:35:58 -06:00
parent 4c4b5eae8d
commit 3727d6bb7c
4 changed files with 15 additions and 16 deletions

View File

@@ -109,7 +109,7 @@ int disasmInstr(CChunk *chunk, int offset, int indent) {
case OP_CLOSE:
return simpleInstruction("OP_CLOSE", offset);
case OP_NEWOBJECT:
return shortOperandInstruction("OP_NEWOBJECT", chunk, offset);
return longOperandInstruction("OP_NEWOBJECT", chunk, offset);
case OP_GETOBJECT:
return simpleInstruction("OP_GETOBJECT", offset);
case OP_SETOBJECT: