projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add tracecontrol
[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 e153d5403c322595ef83ad17d34aee61e2d216c5..4b09e3f79142b64312cd84e9085b70b91d847bb6 100644
(file)
--- a/
ltt/branches/poly/ltt/type.c
+++ b/
ltt/branches/poly/ltt/type.c
@@
-357,12
+357,17
@@
LttField *ltt_field_member(LttField *f, unsigned i)
{
LttField *field_member;
{
LttField *field_member;
+ g_assert(f->field_type->type_class == LTT_STRUCT ||
+ f->field_type->type_class == LTT_UNION);
+ g_assert(i < f->field_type->element_number);
+#if 0
if(unlikely( f->field_type->type_class != LTT_STRUCT
&& f->field_type->type_class != LTT_UNION)
|| i >= f->field_type->element_number )
field_member = NULL;
else
if(unlikely( f->field_type->type_class != LTT_STRUCT
&& f->field_type->type_class != LTT_UNION)
|| i >= f->field_type->element_number )
field_member = NULL;
else
- field_member = f->child[i];
+#endif //0
+ field_member = f->child[i];
return field_member;
}
return field_member;
}
This page took
0.022416 seconds
and
4
git commands to generate.