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:
87263cf
)
Revert "elua: more reliable eoid->lua number conversion"
author
Daniel Kolesa
<d.kolesa@samsung.com>
Thu, 19 Mar 2015 14:59:15 +0000
(14:59 +0000)
committer
Daniel Kolesa
<d.kolesa@samsung.com>
Thu, 19 Mar 2015 14:59:15 +0000
(14:59 +0000)
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
patch
|
blob
|
history
diff --git
a/src/bindings/luajit/eo.lua
b/src/bindings/luajit/eo.lua
index
0d84aa2
..
91c3034
100644
(file)
--- 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")