q66 pushed a commit to branch master.

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

commit c37f68ee465d90ebd46d515e2cfd5cd3fecbea2b
Author: Daniel Kolesa <[email protected]>
Date:   Thu Mar 19 15:01:16 2015 +0000

    elua: cast data, not cbs (data stores the cb id)
---
 src/bindings/luajit/eo.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bindings/luajit/eo.lua b/src/bindings/luajit/eo.lua
index 91c3034..17765ac 100644
--- a/src/bindings/luajit/eo.lua
+++ b/src/bindings/luajit/eo.lua
@@ -144,7 +144,7 @@ local eo_event_cb_fun = function(data, obj, desc, einfo)
     local  addr = eo_obj_addr_get(obj)
     local  cbs  = eo_callbacks[addr]
     assert(cbs)
-    local cidx = tonumber(ffi.cast("intptr_t", cbs))
+    local cidx = tonumber(ffi.cast("intptr_t", data))
     local fun  = cbs[cidx]
     assert(fun)
     return fun() ~= false

-- 


Reply via email to