projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e75cf0d
)
elua: more reliable eoid->lua number conversion
author
Daniel Kolesa
<d.kolesa@samsung.com>
Fri, 6 Mar 2015 14:36:25 +0000
(14:36 +0000)
committer
Daniel Kolesa
<d.kolesa@samsung.com>
Fri, 6 Mar 2015 14:36:25 +0000
(14:36 +0000)
src/bindings/luajit/eo.lua
patch
|
blob
|
history
diff --git
a/src/bindings/luajit/eo.lua
b/src/bindings/luajit/eo.lua
index
f26a907
..
03303b0
100644
(file)
--- 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")