summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2020-05-31 07:26:52 +0200
committerDaniel Kolesa <d.kolesa@samsung.com>2020-05-31 07:27:01 +0200
commit34e855c1f18db30779daa71898ab62e3e83f495e (patch)
tree84b637c36bac707a9a1f2caacac59f9f198d9d28
parent8cc2c419cb870dd20d43eb887bf72410fa8b9472 (diff)
bindings/lua: simplify some eolian binding code
-rw-r--r--src/bindings/lua/eolian.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bindings/lua/eolian.lua b/src/bindings/lua/eolian.lua
index e530500360..687d824243 100644
--- a/src/bindings/lua/eolian.lua
+++ b/src/bindings/lua/eolian.lua
@@ -1853,8 +1853,7 @@ M.Eolian_Doc_Token = ffi.metatype("Eolian_Doc_Token", {
1853 1853
1854 ref_resolve = function(self, state) 1854 ref_resolve = function(self, state)
1855 local stor = ffi.new("const Eolian_Object *[2]") 1855 local stor = ffi.new("const Eolian_Object *[2]")
1856 local sp = ffi.cast("const Eolian_Object **", stor) 1856 local tp = tonum(eolian.eolian_doc_token_ref_resolve(self, state, stor, stor + 1))
1857 local tp = tonum(eolian.eolian_doc_token_ref_resolve(self, state, sp, sp + 1))
1858 local reft = M.object_type 1857 local reft = M.object_type
1859 if tp == reft.CLASS then 1858 if tp == reft.CLASS then
1860 return tp, ffi.cast("const Eolian_Class *", stor[0]) 1859 return tp, ffi.cast("const Eolian_Class *", stor[0])