My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions

Issue 221 attachment: Lib.cpp.patch (563 bytes)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- trunk/src/hx/Lib.cpp
+++ trunk/src/hx/Lib.cpp
@@ -130,10 +130,11 @@

Dynamic __Run(const Array<Dynamic> &inArgs)
{
- if (mArgCount!=-1)
+ int len = inArgs->length;
+ if (mArgCount!=len)
throw HX_INVALID_ARG_COUNT;
HX_STACK_PUSH("extern::cffi",__FILE__,__LINE__);
- return ((prim_mult)mProc)( (hx::Object **)inArgs->GetBase(), inArgs->length );
+ return ((prim_mult)mProc)( (hx::Object **)inArgs->GetBase(), len );
}

void __Mark(hx::MarkContext *__inCtx) { HX_MARK_MEMBER(mName); }
Powered by Google Project Hosting