q66 pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=8bb13b626f3a5d284f50af493f3f7b5566e06586
commit 8bb13b626f3a5d284f50af493f3f7b5566e06586 Author: Daniel Kolesa <d.kol...@samsung.com> Date: Fri Mar 6 14:36:25 2015 +0000 elua: more reliable eoid->lua number conversion --- src/bindings/luajit/eo.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/bindings/luajit/eo.lua b/src/bindings/luajit/eo.lua index f26a907..03303b0 100644 --- a/src/bindings/luajit/eo.lua +++ b/src/bindings/luajit/eo.lua @@ -112,11 +112,8 @@ ffi.cdef [[ extern const Eo_Event_Description _EO_BASE_EVENT_DEL; ]] -local addr_d = ffi.typeof("union { double d; const Eo *p; }") local eo_obj_addr_get = function(x) - local v = addr_d() - v.p = x - return tonumber(v.d) + return tonumber(ffi.cast("intptr_t", x)) end local cutil = require("cutil") --