eolian: fix base_type_get (only allow for pointers)

This commit is contained in:
Daniel Kolesa 2014-07-08 16:56:13 +01:00
parent 16da25bca2
commit f6c7242609
1 changed files with 1 additions and 1 deletions

View File

@ -1210,7 +1210,7 @@ eolian_type_base_type_get(Eolian_Type tp)
Eolian_Type_Type tpt;
EINA_SAFETY_ON_NULL_RETURN_VAL(tp, NULL);
tpt = eolian_type_type_get(tp);
EINA_SAFETY_ON_FALSE_RETURN_VAL(tpt == EOLIAN_TYPE_REGULAR || tpt == EOLIAN_TYPE_POINTER, NULL);
EINA_SAFETY_ON_FALSE_RETURN_VAL(tpt == EOLIAN_TYPE_POINTER, NULL);
return ((_Parameter_Type*)tp)->base_type;
}