Mercurial > octave-nkf
comparison 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 |
comparison
equal
deleted
inserted
replaced
15310:b055fc077224 | 15311:de9bfcf637df |
---|---|
2196 } | 2196 } |
2197 | 2197 |
2198 if (ov.is_range ()) | 2198 if (ov.is_range ()) |
2199 return get_range (); | 2199 return get_range (); |
2200 | 2200 |
2201 if (ov.is_double_type ()) | 2201 if (ov.is_double_type () && ! ov.is_complex_type ()) |
2202 { | 2202 { |
2203 if (ov.is_real_scalar ()) | 2203 if (ov.is_real_scalar ()) |
2204 return get_scalar (); | 2204 return get_scalar (); |
2205 | 2205 |
2206 if (ov.is_matrix_type ()) | 2206 if (ov.is_matrix_type ()) |