Javascript - Fix compilation error wrapping std::complex via std_complex.i
Closes #1187
This commit is contained in:
parent
449ba627f5
commit
7fbdd21b49
2 changed files with 5 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ SWIG_From_dec(Type)(%ifcplusplus(const Type&, Type) c)
|
|||
{
|
||||
SWIGV8_HANDLESCOPE_ESC();
|
||||
|
||||
v8::Local<v8::Array> vals = SWIGV8_ARRAY_NEW(2);
|
||||
v8::Local<v8::Array> vals = SWIGV8_ARRAY_NEW();
|
||||
|
||||
vals->Set(0, SWIG_From(double)(Real(c)));
|
||||
vals->Set(1, SWIG_From(double)(Imag(c)));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue