Precision loss warning fixes for C# std::complex<float> typemaps
For gcc -Wfloat-conversion and vc++ C4244 warnings
This commit is contained in:
parent
be05daa39a
commit
e43dfc69e5
1 changed files with 1 additions and 1 deletions
|
|
@ -49,7 +49,7 @@ public:
|
||||||
%{$1 = std::complex< double >($input.real, $input.imag);%}
|
%{$1 = std::complex< double >($input.real, $input.imag);%}
|
||||||
|
|
||||||
%typemap(in) const std::complex<T> &($*1_ltype temp)
|
%typemap(in) const std::complex<T> &($*1_ltype temp)
|
||||||
%{temp = std::complex< T >($input.real, $input.imag);
|
%{temp = std::complex< T >((T)$input.real, (T)$input.imag);
|
||||||
$1 = &temp;%}
|
$1 = &temp;%}
|
||||||
|
|
||||||
%typemap(out, null="SwigCreateSystemNumericsComplex(0.0, 0.0)") std::complex<T>
|
%typemap(out, null="SwigCreateSystemNumericsComplex(0.0, 0.0)") std::complex<T>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue