compile gui plugins with -fvisibility=hidden
[lttv.git] / ltt / branches / poly / ltt / type.c
index 1d1481de453653599d2c4fde6fd59f2af66545f3..086060a26c000d07ac1c54bafd9be663a34b263a 100644 (file)
@@ -133,6 +133,9 @@ GQuark ltt_field_name(LttField *f)
 {
   return f->name;
 }
+
+
+
 /*****************************************************************************
  *Function name
  *    ltt_type_class : get the type class of the type
@@ -251,7 +254,8 @@ unsigned ltt_type_element_number(LttType *t)
   unsigned ret = 0;
 
   if(likely(t->type_class == LTT_ENUM))
-    ret = g_hash_table_size(t->enum_map);
+    // Permits non full enums ret = g_hash_table_size(t->enum_map);
+    ret = (unsigned)(t->highest_value - t->lowest_value);
 
   return ret;
 }
This page took 0.022819 seconds and 4 git commands to generate.