Mercurial > hg > octave-shane
changeset 3936:f1500121e2e9
[project @ 2002-05-16 13:45:52 by jwe]
author | jwe |
---|---|
date | Thu, 16 May 2002 13:45:52 +0000 |
parents | 1ea29376e43e |
children | e1a2648d9150 |
files | src/ChangeLog src/pr-output.cc |
diffstat | 2 files changed, 4 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2002-05-16 John W. Eaton <jwe@bevo.che.wisc.edu> + + * pr-output.cc (pr_any_float): Don't convert -0 to 0. + 2002-05-15 John W. Eaton <jwe@bevo.che.wisc.edu> * input.cc (generate_completion): If it looks like we are
--- a/src/pr-output.cc +++ b/src/pr-output.cc @@ -1048,15 +1048,6 @@ static void pr_any_float (const float_format *fmt, std::ostream& os, double d, int fw = 0) { -#if defined (SCO) - // Apparently on some SCO systems NaN == -0.0 is true. Compiler bug? - if (d == -0.0 && ! xisnan (d)) - d = 0.0; -#else - if (d == -0.0) - d = 0.0; -#endif - if (fmt) { if (hex_format)