From: Steven Barth Date: Sun, 29 Jun 2008 09:56:38 +0000 (+0000) Subject: * libs/core: Made luci.util.strip_bytecode forward-compatible to upcoming OpenWRT... X-Git-Tag: 0.8.0~735 X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=25089e49fd75c5a9a5bcc06ade48437ce3ec10ad;hp=c99752055aef7f85fbc4bd575a51e005fc0d119a * libs/core: Made luci.util.strip_bytecode forward-compatible to upcoming OpenWRT Lua-changes --- 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