projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix sparse enums
[lttv.git]
/
ltt
/
branches
/
poly
/
ltt
/
type.c
diff --git
a/ltt/branches/poly/ltt/type.c
b/ltt/branches/poly/ltt/type.c
index 1d1481de453653599d2c4fde6fd59f2af66545f3..d396d21a0775b61a3612fad174f0ea85b2397ac7 100644
(file)
--- a/
ltt/branches/poly/ltt/type.c
+++ b/
ltt/branches/poly/ltt/type.c
@@
-251,7
+251,8
@@
unsigned ltt_type_element_number(LttType *t)
unsigned ret = 0;
if(likely(t->type_class == LTT_ENUM))
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;
}
return ret;
}
This page took
0.051535 seconds
and
4
git commands to generate.