e->tracefile->trace->system_description->endian ? 0:1;
LttTypeEnum t = f->field_type->type_class;
- if(t != LTT_UINT || t != LTT_ENUM)
+ if(t != LTT_UINT && t != LTT_ENUM)
g_error("The type of the field is not unsigned int\n");
if(rSize == LTT_LP32){
e->tracefile->trace->system_description->endian ? 0:1;
LttTypeEnum t = f->field_type->type_class;
- if(t != LTT_UINT || t != LTT_ENUM)
+ if(t != LTT_UINT && t != LTT_ENUM)
g_error("The type of the field is not unsigned long\n");
if(rSize == LTT_LP32 || rSize == LTT_ILP32 ){
LttType *ltt_type_element_type(LttType *t)
{
- if(t->type_class != LTT_ARRAY || t->type_class != LTT_SEQUENCE)
+ if(t->type_class != LTT_ARRAY && t->type_class != LTT_SEQUENCE)
return NULL;
return t->element_type[0];
}
unsigned ltt_type_member_number(LttType *t)
{
- if(t->type_class != LTT_STRUCT || t->type_class != LTT_UNION)
+ if(t->type_class != LTT_STRUCT && t->type_class != LTT_UNION)
return 0;
return t->element_number;
}
LttField *ltt_field_element(LttField *f)
{
- if(f->field_type->type_class != LTT_ARRAY ||
+ if(f->field_type->type_class != LTT_ARRAY &&
f->field_type->type_class != LTT_SEQUENCE)
return NULL;