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
|
|
@ -7,6 +7,10 @@ the issue number to the end of the URL: https://github.com/swig/swig/issues/
|
||||||
Version 4.0.0 (in progress)
|
Version 4.0.0 (in progress)
|
||||||
===========================
|
===========================
|
||||||
|
|
||||||
|
2018-02-11: wsfulton
|
||||||
|
[Javascript] #1187 Fix compilation error wrapping std::complex via
|
||||||
|
std_complex.i.
|
||||||
|
|
||||||
2018-01-30: smarchetto
|
2018-01-30: smarchetto
|
||||||
[Scilab] add type name argument in SWIG_ptr() function to cast from pointer adress to typed pointers
|
[Scilab] add type name argument in SWIG_ptr() function to cast from pointer adress to typed pointers
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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(2);
|
v8::Local<v8::Array> vals = SWIGV8_ARRAY_NEW();
|
||||||
|
|
||||||
vals->Set(0, SWIG_From(double)(Real(c)));
|
vals->Set(0, SWIG_From(double)(Real(c)));
|
||||||
vals->Set(1, SWIG_From(double)(Imag(c)));
|
vals->Set(1, SWIG_From(double)(Imag(c)));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue