Mercurial > hg > octave-lojdl
changeset 9591:264fb5520973
abort if floating point format is not recognized as IEEE
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 31 Aug 2009 19:29:48 -0400 |
parents | b18a50c56144 |
children | 5828d64ca004 |
files | liboctave/ChangeLog liboctave/lo-ieee.cc |
diffstat | 2 files changed, 8 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/ChangeLog +++ b/liboctave/ChangeLog @@ -1,3 +1,8 @@ +2009-08-31 John W. Eaton <jwe@octave.org> + + * liboctave/lo-ieee.cc (octave_ieee_init): Abort if floating point + format is not recognized as IEEE. + 2009-08-27 John W. Eaton <jwe@octave.org> * str-vec.cc, str-vec.h (string_vector::string_vector (const
--- a/liboctave/lo-ieee.cc +++ b/liboctave/lo-ieee.cc @@ -157,13 +157,12 @@ case oct_mach_info::flt_fmt_cray: case oct_mach_info::flt_fmt_vax_d: case oct_mach_info::flt_fmt_vax_g: - break; - default: // If the format is unknown, then you will probably not have a // useful system, but we will just issue a warning and go on... - (*current_liboctave_warning_handler) - ("lo_ieee_init: unrecognized floating point format!"); + (*current_liboctave_error_handler) + ("lo_ieee_init: floating point format is not IEEE! Maybe DLAMCH is miscompiled, or you are using some strange system without IEEE floating point math?"); + abort (); } }