File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,16 +30,18 @@ local bit64_to_hex = bit64.to_hex
3030local bit64_to_number = bit64 .to_number
3131
3232-- Lua 5.3+ removed math.frexp and math.ldexp; provide polyfills
33- local math_frexp = math.frexp or function (x )
34- if x == 0 then return 0 , 0 end
35- local e = math.floor (math.log (math.abs (x )) / math.log (2 )) + 1
36- return x / 2 ^ e , e
37- end
33+ local math_frexp = math.frexp
34+ or function (x )
35+ if x == 0 then
36+ return 0 , 0
37+ end
38+ local e = math.floor (math.log (math.abs (x )) / math.log (2 )) + 1
39+ return x / 2 ^ e , e
40+ end
3841local math_ldexp = math.ldexp or function (m , e )
39- return m * 2 ^ e
42+ return m * 2 ^ e
4043end
4144
42-
4345--- Check if a value is a list (sequential table).
4446--- @param t any The value to check.
4547--- @return boolean is_list True if the value is a list.
You can’t perform that action at this time.
0 commit comments