Skip to content

Commit

Permalink
fix dodgy cffi copy and paste job
Browse files Browse the repository at this point in the history
  • Loading branch information
Aidan63 committed Aug 30, 2024
1 parent 7358931 commit 14d8cc1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/hx/CFFI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ hx::Object * val_ocall1(hx::Object * arg1,int arg2,hx::Object * arg3) THROWS
#if (HXCPP_API_LEVEL>=500)
return hx::invoker::invoke(arg1->__IField(arg2), arg3).GetPtr();
#else
return arg1->__IField(arg2, arg3)->__run().GetPtr();
return arg1->__IField(arg2)->__run(arg3).GetPtr();
#endif
}

Expand All @@ -770,7 +770,7 @@ hx::Object * val_ocall2(hx::Object * arg1,int arg2,hx::Object * arg3,hx::Object
#if (HXCPP_API_LEVEL>=500)
return hx::invoker::invoke(arg1->__IField(arg2), arg3, arg4).GetPtr();
#else
return arg1->__IField(arg2, arg3, arg4)->__run().GetPtr();
return arg1->__IField(arg2)->__run(arg3, arg4).GetPtr();
#endif
}

Expand All @@ -781,7 +781,7 @@ hx::Object * val_ocall3(hx::Object * arg1,int arg2,hx::Object * arg3,hx::Object
#if (HXCPP_API_LEVEL>=500)
return hx::invoker::invoke(arg1->__IField(arg2), arg3, arg4, arg5).GetPtr();
#else
return arg1->__IField(arg2, arg3, arg4, arg5)->__run().GetPtr();
return arg1->__IField(arg2)->__run(arg3, arg4, arg5).GetPtr();
#endif
}

Expand Down

0 comments on commit 14d8cc1

Please sign in to comment.