Mercurial > hg > octave-nkf
changeset 5124:2d03212b76b4
[project @ 2005-01-27 16:56:26 by jwe]
author | jwe |
---|---|
date | Thu, 27 Jan 2005 16:56:35 +0000 |
parents | 500f3031866d |
children | 8bf86c0fad1b |
files | src/ChangeLog src/ov-mapper.cc |
diffstat | 2 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2005-01-27 David Bateman <dbateman@free.fr> + + * ov-mapper.cc (octave_mapper::apply): Only work on real arguments + if c_c_map_fcn or d_d_map_fcn or d_b_map_fcn is defined.xo + 2005-01-26 Joel Andersson <snprintf@gmail.com> * help.cc (keywords): Document endswitch.
--- a/src/ov-mapper.cc +++ b/src/ov-mapper.cc @@ -112,7 +112,9 @@ // XXX FIXME XXX -- is_real_type can return true. Should it really // work that way? - if (arg.is_real_type () && ! (arg.is_string () && ch_map_fcn)) + if (arg.is_real_type () + && (c_c_map_fcn || d_d_map_fcn || d_b_map_fcn) + && ! (arg.is_string () && ch_map_fcn)) { if (arg.is_scalar_type ()) {