Skip to content

Commit

Permalink
fix: fixed an error causing Argon to crash when executing a currying …
Browse files Browse the repository at this point in the history
…function
  • Loading branch information
jacopodl committed May 7, 2024
1 parent 1d71e07 commit edf234f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion argon/vm/datatype/function.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ Function *FunctionClone(const Function *func) {
if (func->IsNative())
fn->native = func->native;
else
fn->code = IncRef(fn->code);
fn->code = IncRef(func->code);

fn->name = IncRef(func->name);
fn->qname = IncRef(func->qname);
Expand Down

0 comments on commit edf234f

Please sign in to comment.