aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/luarocks/tools/tar.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/luarocks/tools/tar.lua b/src/luarocks/tools/tar.lua
index 3b431b8e..b2bd930a 100644
--- a/src/luarocks/tools/tar.lua
+++ b/src/luarocks/tools/tar.lua
@@ -31,9 +31,10 @@ local function octal_to_number(octal)
31 local number = 0 31 local number = 0
32 for i = #octal,1,-1 do 32 for i = #octal,1,-1 do
33 local digit = tonumber(octal:sub(i,i)) 33 local digit = tonumber(octal:sub(i,i))
34 if not digit then break end 34 if digit then
35 number = number + (digit * 8^exp) 35 number = number + (digit * 8^exp)
36 exp = exp + 1 36 exp = exp + 1
37 end
37 end 38 end
38 return number 39 return number
39end 40end