diff options
author | Gustavo Sverzut Barbieri <barbieri@profusion.mobi> | 2016-12-06 12:40:33 -0200 |
---|---|---|
committer | Gustavo Sverzut Barbieri <barbieri@profusion.mobi> | 2016-12-06 12:40:33 -0200 |
commit | 05932169953aa558b9c4cfe6979d7b0cdeb9ff9c (patch) | |
tree | c461b50978f4eeb7f91f2bba5932c8d70f49406d | |
parent | abb7310506ce825404788b7674f2bf3961c9df45 (diff) | |
download | efl-05932169953aa558b9c4cfe6979d7b0cdeb9ff9c.tar.gz |
eo: efl_super() can receive a class as first parameter.
This fixes the src/tests/eo/test_function_overrides
-rw-r--r-- | src/lib/eo/eo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c index e8e6a12b81..9c9a163468 100644 --- a/src/lib/eo/eo.c +++ b/src/lib/eo/eo.c @@ -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 |