summaryrefslogtreecommitdiff
path: root/src/lib/eolian/database_type_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/eolian/database_type_api.c')
-rw-r--r--src/lib/eolian/database_type_api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/eolian/database_type_api.c b/src/lib/eolian/database_type_api.c
index d733a93ed3..4528b7c9ed 100644
--- a/src/lib/eolian/database_type_api.c
+++ b/src/lib/eolian/database_type_api.c
@@ -312,12 +312,12 @@ eolian_typedecl_aliased_base_get(const Eolian_Unit *unit, const Eolian_Typedecl
312} 312}
313 313
314EAPI const Eolian_Class * 314EAPI const Eolian_Class *
315eolian_type_class_get(const Eolian_Unit *unit, const Eolian_Type *tp) 315eolian_type_class_get(const Eolian_Type *tp)
316{ 316{
317 EINA_SAFETY_ON_NULL_RETURN_VAL(tp, NULL); 317 EINA_SAFETY_ON_NULL_RETURN_VAL(tp, NULL);
318 if (eolian_type_type_get(tp) != EOLIAN_TYPE_CLASS) 318 if (eolian_type_type_get(tp) != EOLIAN_TYPE_CLASS)
319 return NULL; 319 return NULL;
320 return eolian_class_get_by_name(unit, tp->full_name); 320 return tp->klass;
321} 321}
322 322
323EAPI Eina_Bool 323EAPI Eina_Bool