Mercurial > hg > octave-nkf
diff src/ov.cc @ 4457:d7d9ca19960a
[project @ 2003-07-11 03:05:38 by jwe]
author | jwe |
---|---|
date | Fri, 11 Jul 2003 03:05:39 +0000 |
parents | abbf63293766 |
children | af308ca1a354 |
line wrap: on
line diff
--- a/src/ov.cc +++ b/src/ov.cc @@ -1128,11 +1128,11 @@ } octave_value -octave_value::convert_to_str (bool pad) const +octave_value::convert_to_str (bool pad, bool force) const { - octave_value retval = convert_to_str_internal (pad); + octave_value retval = convert_to_str_internal (pad, force); - if (is_numeric_type () && Vwarn_num_to_str) + if (! force && is_numeric_type () && Vwarn_num_to_str) gripe_implicit_conversion (type_name (), retval.type_name ()); return retval;