aboutsummaryrefslogtreecommitdiffstats
path: root/src/bytecode/vm.h
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2021-10-22 13:38:52 +0200
committerBad Diode <bd@badd10de.dev>2021-10-22 13:38:52 +0200
commit6fd244cb04cf1972e9d7dcc5635bf5cfe8194402 (patch)
tree3ebd4788679a49787a0dc87ec1b66ef89255f34d /src/bytecode/vm.h
parent3b136ffdebf135cc0d285573edd7bdfefb99bb00 (diff)
downloadbdl-6fd244cb04cf1972e9d7dcc5635bf5cfe8194402.tar.gz
bdl-6fd244cb04cf1972e9d7dcc5635bf5cfe8194402.zip
Add more keyword token types
Diffstat (limited to 'src/bytecode/vm.h')
-rw-r--r--src/bytecode/vm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bytecode/vm.h b/src/bytecode/vm.h
index cc9f846..6c5dfa7 100644
--- a/src/bytecode/vm.h
+++ b/src/bytecode/vm.h
@@ -102,8 +102,8 @@ vm_interpret(VM vm) {
102 error_push((Error){ 102 error_push((Error){
103 .type = ERR_TYPE_RUNTIME, 103 .type = ERR_TYPE_RUNTIME,
104 .value = ERR_NOT_IMPLEMENTED, 104 .value = ERR_NOT_IMPLEMENTED,
105 .line = vm.chunk->lines[0].line, 105 .line = vm.chunk->lines[(vm.pc - vm.chunk->code) - 1].line,
106 .col = vm.chunk->lines[0].col, 106 .col = vm.chunk->lines[(vm.pc - vm.chunk->code) - 1].col,
107 }); 107 });
108 return; 108 return;
109 } break; 109 } break;