# HG changeset patch # User jwe # Date 949985134 0 # Node ID 2a38a5ddf20dc2903436964e14a3735b5065dfeb # Parent d9803711e047160d513b0ef83a4a3c154845c352 [project @ 2000-02-08 04:45:33 by jwe] diff --git a/src/ChangeLog b/src/ChangeLog --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,7 @@ 2000-02-07 John W. Eaton + * 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. diff --git a/src/mappers.cc b/src/mappers.cc --- 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