Skip to content

Commit

Permalink
Memory undefined behavior and other bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
EricLBuehler authored Dec 6, 2022
1 parent 64f2425 commit 4a63c45
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified falcon.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ int main(int argc, char** argv) {
fpl_startup();

struct compiler* compiler = new_compiler();
::vm=new_vm(interpreter.vm_map->size(), NULL, compiler->instructions, new string(NULL)); //data is still in scope...
::vm=new_vm(interpreter.vm_map->size(), NULL, compiler->instructions, NULL); //data is still in scope...
interpreter_add_vm(interpreter.vm_map->size(), vm);
gil_lock(vm->id);
dict_set_noret(::vm->globals, str_new_fromstr("__annotations__"), ::callstack_head(vm->callstack).annotations);
Expand Down

0 comments on commit 4a63c45

Please sign in to comment.