* libs/core: Made luci.util.strip_bytecode forward-compatible to upcoming OpenWRT...
authorSteven Barth <steven@midlink.org>
Sun, 29 Jun 2008 09:56:38 +0000 (09:56 +0000)
committerSteven Barth <steven@midlink.org>
Sun, 29 Jun 2008 09:56:38 +0000 (09:56 +0000)
libs/core/luasrc/util.lua

index 9f1d050..76e382b 100644 (file)
@@ -234,7 +234,7 @@ function strip_bytecode(dump)
                                offset = offset + size + subint(dump, offset, size)
                        elseif t == 3 then
                                offset = offset + num
                                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
                                offset = offset + lnum
                        end
                end