File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ if lua_version == "5.1" then
4646
4747
4848 if not is_luajit then
49- local function helper (st , var_1 , ...)
49+ local function helper (_ , var_1 , ...)
5050 if var_1 == nil then
5151 if (... ) ~= nil then
5252 error ((... ), 2 )
@@ -197,7 +197,7 @@ if lua_version == "5.1" then
197197 msg = msg :gsub (" %z+" , function (zeros )
198198 return " \n\t (..." ..# zeros .. " tail call(s)...)"
199199 end )
200- msg = msg :gsub (" \001 " , function (zeros )
200+ msg = msg :gsub (" \001 " , function ()
201201 return " \n\t ..."
202202 end )
203203 return msg
Original file line number Diff line number Diff line change @@ -40,14 +40,6 @@ if lua_version < "5.3" then
4040 end
4141 end
4242
43- local function checktype (x , t , i , f )
44- local xt = type (x )
45- if xt ~= t then
46- error (" bad argument #" .. i .. " to '" .. f .. " ' (" .. t ..
47- " expected, got " .. xt .. " )" , 0 )
48- end
49- end
50-
5143
5244 -- load utf8 library
5345 local utf8_ok , utf8lib = pcall (require , " compat53.utf8" )
@@ -94,7 +86,7 @@ if lua_version < "5.3" then
9486
9587 -- update math library
9688 do
97- local maxint , minint = 1 , 0
89+ local maxint , minint = 1
9890
9991 while maxint + 1 > maxint and 2 * maxint > maxint do
10092 maxint = maxint * 2
@@ -269,10 +261,10 @@ if lua_version < "5.3" then
269261 x , y , a , b = y , x , b , a
270262 end
271263 if not cmp (y , z ) then
272- y , z , b , c = z , y , c , b
264+ y , b = z , c
273265 end
274266 if not cmp (x , y ) then
275- x , y , a , b = y , x , b , a
267+ y , b = x , a
276268 end
277269 return b , y
278270 else
You can’t perform that action at this time.
0 commit comments