From 46b1cbea5ad70a7a4d2244358fbcfd79cbc92db5 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Fri, 25 Dec 2015 01:04:08 -0800 Subject: [PATCH] actually actually fix octal numbers --- lips.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lips.lua b/lips.lua index 7560580..300d588 100644 --- a/lips.lua +++ b/lips.lua @@ -559,7 +559,7 @@ end function Lexer:read_octal() local buff = self:read_chars('[0-7]') - local num = tonumber(buff) + local num = tonumber(buff, 8) if not num then self:error('invalid octal number') end return num end