summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2015-03-19 15:01:16 +0000
committerDaniel Kolesa <d.kolesa@samsung.com>2015-03-19 15:01:16 +0000
commitc37f68ee465d90ebd46d515e2cfd5cd3fecbea2b (patch)
tree321a08db5e1fe8d93fc23ccc51e0777c9d101529
parent9ef2b353174433844d081172f05d1e93a516c627 (diff)
elua: cast data, not cbs (data stores the cb id)
-rw-r--r--src/bindings/luajit/eo.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bindings/luajit/eo.lua b/src/bindings/luajit/eo.lua
index 91c3034914..17765ac5cb 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)
144 local addr = eo_obj_addr_get(obj) 144 local addr = eo_obj_addr_get(obj)
145 local cbs = eo_callbacks[addr] 145 local cbs = eo_callbacks[addr]
146 assert(cbs) 146 assert(cbs)
147 local cidx = tonumber(ffi.cast("intptr_t", cbs)) 147 local cidx = tonumber(ffi.cast("intptr_t", data))
148 local fun = cbs[cidx] 148 local fun = cbs[cidx]
149 assert(fun) 149 assert(fun)
150 return fun() ~= false 150 return fun() ~= false