barbieri pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=05932169953aa558b9c4cfe6979d7b0cdeb9ff9c

commit 05932169953aa558b9c4cfe6979d7b0cdeb9ff9c
Author: Gustavo Sverzut Barbieri <barbi...@profusion.mobi>
Date:   Tue Dec 6 12:40:33 2016 -0200

    eo: efl_super() can receive a class as first parameter.
    
    This fixes the src/tests/eo/test_function_overrides
---
 src/lib/eo/eo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c
index e8e6a12..9c9a163 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

-- 


Reply via email to