Mercurial > hg > octave-nkf
changeset 18687:7948d15e7e2e draft
Fix single type support
author | LYH <lyh.kernel@gmail.com> |
---|---|
date | Fri, 21 Mar 2014 14:59:38 -0400 |
parents | 61331c790982 |
children | 11d1f3d1ab0d |
files | libinterp/corefcn/jit-typeinfo.cc |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/jit-typeinfo.cc +++ b/libinterp/corefcn/jit-typeinfo.cc @@ -2423,9 +2423,10 @@ return get_matrix (); } - if (ov.is_float_type ()) + if (ov.is_single_type () && ! ov.is_complex_type ()) { - return get_single (); + if (ov.is_real_scalar ()) + return get_single (); } if (ov.is_uint16_type())