From 25089e49fd75c5a9a5bcc06ade48437ce3ec10ad Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Sun, 29 Jun 2008 09:56:38 +0000 Subject: [PATCH 1/1] * libs/core: Made luci.util.strip_bytecode forward-compatible to upcoming OpenWRT Lua-changes --- libs/core/luasrc/util.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/core/luasrc/util.lua b/libs/core/luasrc/util.lua index 9f1d050e7..76e382b45 100644 --- a/libs/core/luasrc/util.lua +++ b/libs/core/luasrc/util.lua @@ -234,7 +234,7 @@ function strip_bytecode(dump) offset = offset + size + subint(dump, offset, size) elseif t == 3 then offset = offset + num - elseif t == 254 then + elseif t == 254 or t == 9 then offset = offset + lnum end end -- 2.11.0