From 41c1af88e0fd2694eaca6ed790289e9fa78609eb Mon Sep 17 00:00:00 2001 From: Daniel Kolesa Date: Sun, 31 May 2020 07:26:52 +0200 Subject: [PATCH] bindings/lua: simplify some eolian binding code --- src/bindings/lua/eolian.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/bindings/lua/eolian.lua b/src/bindings/lua/eolian.lua index e530500..687d824 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", { ref_resolve = function(self, state) local stor = ffi.new("const Eolian_Object *[2]") - local sp = ffi.cast("const Eolian_Object **", stor) - local tp = tonum(eolian.eolian_doc_token_ref_resolve(self, state, sp, sp + 1)) + local tp = tonum(eolian.eolian_doc_token_ref_resolve(self, state, stor, stor + 1)) local reft = M.object_type if tp == reft.CLASS then return tp, ffi.cast("const Eolian_Class *", stor[0]) -- 2.7.4