diff src/ov-cx-mat.cc @ 11129:0de5cc44e690

use gripe functions for NaN to logical and NaN to character conversions more consistently
author John W. Eaton <jwe@octave.org>
date Thu, 21 Oct 2010 16:12:00 -0400
parents 4d1fc073fbb7
children fd0a3ac60b0e
line wrap: on
line diff
--- a/src/ov-cx-mat.cc	Thu Oct 21 11:58:42 2010 -0700
+++ b/src/ov-cx-mat.cc	Thu Oct 21 16:12:00 2010 -0400
@@ -226,7 +226,7 @@
 octave_complex_matrix::bool_array_value (bool warn) const
 {
   if (matrix.any_element_is_nan ())
-    error ("invalid conversion from NaN to logical");
+    gripe_nan_to_logical_conversion ();
   else if (warn && (! matrix.all_elements_are_real () 
                     || real (matrix).any_element_not_one_or_zero ()))
     gripe_logical_conversion ();