Mercurial > hg > octave-terminal
changeset 11637:ffbf57f4ba30 release-3-0-x
Allow cast to treat the logical types
author | David Bateman |
---|---|
date | Tue, 12 Feb 2008 13:00:45 +0100 |
parents | 2be7477f470a |
children | b80ff179c08d |
files | scripts/ChangeLog scripts/miscellaneous/cast.m |
diffstat | 2 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -2,6 +2,7 @@ * plot/__go_draw_axes__.m: Set pm3d implict to fix colorbars on contour plots. + * miscellaneous/cast.m: Also treat the logical type. * plot/__go_draw_axes__.m: Use the cdatamapping property to set the cbrange.
--- a/scripts/miscellaneous/cast.m +++ b/scripts/miscellaneous/cast.m @@ -30,7 +30,7 @@ if (ischar (typ)) if (any (strcmp (typ, {"int8"; "uint8"; "int16"; "uint16"; "int32"; "uint32"; "int64"; "uint64"; - "double"; "single"}))) + "double"; "single"; "logical"}))) retval = feval (typ, val); else error ("cast: type name `%s' is not a built-in type", typ);