Mercurial > octave
changeset 22859:adc66f043cfc
avoid double -> float -> double type conversion
* ov-intx.h (octave_base_int_scalar::complex_array_value):
Convert double value to Complex, not FloatComplex.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 02 Dec 2016 13:49:53 -0500 |
parents | a183a0929653 |
children | 0b1e25cc4457 |
files | libinterp/octave-value/ov-intx.h |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/octave-value/ov-intx.h Fri Dec 02 14:35:57 2016 -0500 +++ b/libinterp/octave-value/ov-intx.h Fri Dec 02 13:49:53 2016 -0500 @@ -558,7 +558,7 @@ complex_array_value (bool = false) const { ComplexNDArray retval (dim_vector (1, 1)); - retval(0) = FloatComplex (scalar.double_value ()); + retval(0) = Complex (scalar.double_value ()); return retval; }