eo: efl_super() can receive a class as first parameter.

This fixes the src/tests/eo/test_function_overrides
This commit is contained in:
Gustavo Sverzut Barbieri 2016-12-06 12:40:33 -02:00
parent abb7310506
commit 0593216995
1 changed files with 1 additions and 1 deletions

View File

@ -373,7 +373,7 @@ efl_super(const Eo *obj, const Efl_Class *cur_klass)
{
EO_CLASS_POINTER_GOTO(cur_klass, klass, err);
if (EINA_UNLIKELY(!_eo_is_a_obj(obj))) goto err_obj;
if (EINA_UNLIKELY(!_eo_is_a_obj(obj) && !_eo_is_a_class(obj))) goto err_obj;
#ifdef EO_DEBUG
if (EINA_UNLIKELY(!efl_isa(obj, cur_klass))) goto err_obj_hierarchy;
#endif