Fix for new SWIGV8_ARRAY_NEW definition
This commit is contained in:
parent
1a4dc82931
commit
53bdc3964d
1 changed files with 1 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ SWIG_From_dec(Type)(%ifcplusplus(const Type&, Type) c)
|
||||||
{
|
{
|
||||||
SWIGV8_HANDLESCOPE_ESC();
|
SWIGV8_HANDLESCOPE_ESC();
|
||||||
|
|
||||||
v8::Local<v8::Array> vals = SWIGV8_ARRAY_NEW();
|
v8::Local<v8::Array> vals = SWIGV8_ARRAY_NEW(0);
|
||||||
|
|
||||||
SWIGV8_ARRAY_SET(vals, 0, SWIG_From(double)(Real(c)));
|
SWIGV8_ARRAY_SET(vals, 0, SWIG_From(double)(Real(c)));
|
||||||
SWIGV8_ARRAY_SET(vals, 1, SWIG_From(double)(Imag(c)));
|
SWIGV8_ARRAY_SET(vals, 1, SWIG_From(double)(Imag(c)));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue