Mercurial > hg > octave-lyh
changeset 3586:2a38a5ddf20d
[project @ 2000-02-08 04:45:33 by jwe]
author | jwe |
---|---|
date | Tue, 08 Feb 2000 04:45:34 +0000 |
parents | d9803711e047 |
children | b11f9c33558f |
files | src/ChangeLog src/mappers.cc |
diffstat | 2 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,7 @@ 2000-02-07 John W. Eaton <jwe@bevo.che.wisc.edu> + * mappers.cc (ximag, xreal): Return double, not Complex. + * error.cc (panic): Turn off buffering of error messages. Don't call flush_octave_stdout here, verror will do it for us. (verror): Don't call flush_octave_stdout if buffering error messages.
--- a/src/mappers.cc +++ b/src/mappers.cc @@ -140,16 +140,16 @@ return x; } -static Complex +static double ximag (const Complex& x) { - return Complex (0.0, x.imag ()); + return x.imag (); } -static Complex +static double xreal (const Complex& x) { - return Complex (x.real (), 0.0); + return x.real (); } void