diff src/ov-perm.h @ 10304:2ceae0b40515

fix builtin_type for permutation matrices, avoid segfaults with invalid values in get_dispatch_type
author Jaroslav Hajek <highegg@gmail.com>
date Wed, 10 Feb 2010 22:12:36 +0100
parents f80c566bc751
children f3b65e1ae355
line wrap: on
line diff
--- a/src/ov-perm.h	Wed Feb 10 16:12:13 2010 -0500
+++ b/src/ov-perm.h	Wed Feb 10 22:12:36 2010 +0100
@@ -100,6 +100,8 @@
   sortmode is_sorted_rows (sortmode mode = UNSORTED) const
     { return to_dense ().is_sorted_rows (mode); }
 
+  builtin_type_t builtin_type (void) const { return btyp_double; }
+
   bool is_perm_matrix (void) const { return true; }
 
   bool is_matrix_type (void) const { return true; }