changeset 17469:320daec7af26

Fix single type support
author LYH <lyh.kernel@gmail.com>
date Thu, 26 Sep 2013 02:20:36 +0800
parents dbfc7f98de02
children a0014fa5cf63
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
@@ -2422,9 +2422,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())