q66 pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=9ef2b353174433844d081172f05d1e93a516c627
commit 9ef2b353174433844d081172f05d1e93a516c627 Author: Daniel Kolesa <[email protected]> Date: Thu Mar 19 14:59:15 2015 +0000 Revert "elua: more reliable eoid->lua number conversion" This reverts commit 8bb13b626f3a5d284f50af493f3f7b5566e06586. Seems like this method is not so reliable after all :) Results in precision loss for Eo IDs, so revert to the old hacky way. --- src/bindings/luajit/eo.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/bindings/luajit/eo.lua b/src/bindings/luajit/eo.lua index 0d84aa2..91c3034 100644 --- a/src/bindings/luajit/eo.lua +++ b/src/bindings/luajit/eo.lua @@ -110,8 +110,11 @@ 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) - return tonumber(ffi.cast("intptr_t", x)) + local v = addr_d() + v.p = x + return tonumber(v.d) end local cutil = require("cutil") --
