diff options
Diffstat (limited to 'src/bytecode/vm.h')
-rw-r--r-- | src/bytecode/vm.h | 4 |
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; |