From e1c469e6341010a0831f389e609648978026590d Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Sun, 1 Jun 2008 12:22:47 +0000 Subject: * Added OpenWRT package for english translation (incomplete) * libs/core: Fixed indentation of luci.util.strip_bytecode --- libs/core/luasrc/util.lua | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'libs') diff --git a/libs/core/luasrc/util.lua b/libs/core/luasrc/util.lua index 0a30b163a..d79f93b1d 100644 --- a/libs/core/luasrc/util.lua +++ b/libs/core/luasrc/util.lua @@ -200,16 +200,16 @@ function strip_bytecode(dump) val = val * 256 + dump:byte(i + n - 1) end return val, i + l - end + end else - subint = function(dump, i, l) - local val = 0 - for n = 1, l, 1 do - val = val * 256 + dump:byte(i + n - 1) - end - return val, i + l - end - end + subint = function(dump, i, l) + local val = 0 + for n = 1, l, 1 do + val = val * 256 + dump:byte(i + n - 1) + end + return val, i + l + end + end local strip_function strip_function = function(dump) -- cgit v1.2.3