summaryrefslogtreecommitdiff
path: root/src/bindings
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2015-03-06 14:36:25 +0000
committerDaniel Kolesa <d.kolesa@samsung.com>2015-03-06 14:36:25 +0000
commit8bb13b626f3a5d284f50af493f3f7b5566e06586 (patch)
treed1ad8ab0685bda0a9fd44715eef1a02ba9d9e533 /src/bindings
parente75cf0db13cad000835275dd3ec41c23e682f526 (diff)
elua: more reliable eoid->lua number conversion
Diffstat (limited to 'src/bindings')
-rw-r--r--src/bindings/luajit/eo.lua5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/bindings/luajit/eo.lua b/src/bindings/luajit/eo.lua
index f26a907031..03303b0fc3 100644
--- a/src/bindings/luajit/eo.lua
+++ b/src/bindings/luajit/eo.lua
@@ -112,11 +112,8 @@ ffi.cdef [[
112 extern const Eo_Event_Description _EO_BASE_EVENT_DEL; 112 extern const Eo_Event_Description _EO_BASE_EVENT_DEL;
113]] 113]]
114 114
115local addr_d = ffi.typeof("union { double d; const Eo *p; }")
116local eo_obj_addr_get = function(x) 115local eo_obj_addr_get = function(x)
117 local v = addr_d() 116 return tonumber(ffi.cast("intptr_t", x))
118 v.p = x
119 return tonumber(v.d)
120end 117end
121 118
122local cutil = require("cutil") 119local cutil = require("cutil")