summaryrefslogtreecommitdiff
path: root/src/bindings
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2015-03-19 14:59:15 +0000
committerDaniel Kolesa <d.kolesa@samsung.com>2015-03-19 14:59:15 +0000
commit9ef2b353174433844d081172f05d1e93a516c627 (patch)
tree57dd99c43085b31f256bb1e9f3ebcb0ad1b969ad /src/bindings
parent87263cf0bd584fcf76e4ba36b1e16712b21f0f43 (diff)
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.
Diffstat (limited to 'src/bindings')
-rw-r--r--src/bindings/luajit/eo.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bindings/luajit/eo.lua b/src/bindings/luajit/eo.lua
index 0d84aa24ee..91c3034914 100644
--- a/src/bindings/luajit/eo.lua
+++ b/src/bindings/luajit/eo.lua
@@ -110,8 +110,11 @@ ffi.cdef [[
110 extern const Eo_Event_Description _EO_BASE_EVENT_DEL; 110 extern const Eo_Event_Description _EO_BASE_EVENT_DEL;
111]] 111]]
112 112
113local addr_d = ffi.typeof("union { double d; const Eo *p; }")
113local eo_obj_addr_get = function(x) 114local eo_obj_addr_get = function(x)
114 return tonumber(ffi.cast("intptr_t", x)) 115 local v = addr_d()
116 v.p = x
117 return tonumber(v.d)
115end 118end
116 119
117local cutil = require("cutil") 120local cutil = require("cutil")