diff libinterp/interp-core/jit-typeinfo.cc @ 15311:de9bfcf637df

Fix error when compiling with complex matrix (bug #37247) * jit-typeinfo.cc (jit_typeinfo::do_type_of): Correctly check for complex matricies. * pt-jit.cc (jit_convert::visit_constant): Correctly check for complex values.
author Max Brister <max@2bass.com>
date Thu, 06 Sep 2012 02:19:09 -0600
parents aeba1adfd76b
children 8125773322d4
line wrap: on
line diff
--- a/libinterp/interp-core/jit-typeinfo.cc	Thu Sep 06 01:33:08 2012 -0400
+++ b/libinterp/interp-core/jit-typeinfo.cc	Thu Sep 06 02:19:09 2012 -0600
@@ -2198,7 +2198,7 @@
   if (ov.is_range ())
     return get_range ();
 
-  if (ov.is_double_type ())
+  if (ov.is_double_type () && ! ov.is_complex_type ())
     {
       if (ov.is_real_scalar ())
         return get_scalar ();