Mercurial > hg > octave-lojdl
changeset 11438:9e8497537319
typeinfo: return cellstr, not char array
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 04 Jan 2011 14:09:16 -0500 |
parents | 6bfb286a0efa |
children | c2f44cba24c9 |
files | src/ChangeLog src/ov-typeinfo.cc |
diffstat | 2 files changed, 8 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2011-01-04 John W. Eaton <jwe@octave.org> + + * ov-typeinfo.cc (Ftypeinfo): Return cell array of character + strings, not character array. Bug #32050. + 2011-01-03 Rik <octave@nomad.inbox5.com> * data.cc (islogical, isnumeric): Add tests to check sparse forms of
--- a/src/ov-typeinfo.cc +++ b/src/ov-typeinfo.cc @@ -583,8 +583,8 @@ { string_vector retval (num_types); - for (int i = 0;i < num_types; i++) - retval (i) = types (i); + for (int i = 0; i < num_types; i++) + retval(i) = types(i); return retval; } @@ -603,7 +603,7 @@ int nargin = args.length (); if (nargin == 0) - retval = octave_value_typeinfo::installed_type_names (); + retval = Cell (octave_value_typeinfo::installed_type_names ()); else if (nargin == 1) retval = args(0).type_name (); else