Mercurial > hg > octave-nkf
diff liboctave/Array-util.cc @ 10489:d47802f0e557
Back out changeset 4e64fbbd5c58
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Tue, 06 Apr 2010 08:28:15 +0200 |
parents | 942386d6d1a5 |
children | aac9f4265048 |
line wrap: on
line diff
--- a/liboctave/Array-util.cc +++ b/liboctave/Array-util.cc @@ -708,16 +708,12 @@ } void -gripe_invalid_index (bool err) +gripe_invalid_index (void) { const char *err_id = error_id_invalid_index; - if (err) - (*current_liboctave_error_with_id_handler) - (err_id, "subscript indices must be either positive integers or logicals"); - else - (*current_liboctave_warning_with_id_handler) - (err_id, "non-integer subscripts in index expression"); + (*current_liboctave_error_with_id_handler) + (err_id, "subscript indices must be either positive integers or logicals."); } // FIXME -- the following is a common error message to resize,