mirror of
https://github.com/appgurueu/modlib.git
synced 2024-08-19 21:04:13 +02:00
Use tabs not spaces
This commit is contained in:
parent
a86b24eef5
commit
daa0251632
1
luon.lua
1
luon.lua
@ -168,6 +168,7 @@ end
|
|||||||
function read(self, ...)
|
function read(self, ...)
|
||||||
local read = assert(...)
|
local read = assert(...)
|
||||||
-- math.huge is serialized to inf, 0/0 is serialized to -nan
|
-- math.huge is serialized to inf, 0/0 is serialized to -nan
|
||||||
|
-- TODO verify this is actually the case, see https://en.wikipedia.org/wiki/Printf_format_string
|
||||||
setfenv(read, setmetatable({inf = math_huge, nan = 0/0}, {__index = self.aux_read}))
|
setfenv(read, setmetatable({inf = math_huge, nan = 0/0}, {__index = self.aux_read}))
|
||||||
local success, value_or_err = pcall(read)
|
local success, value_or_err = pcall(read)
|
||||||
if success then
|
if success then
|
||||||
|
Loading…
Reference in New Issue
Block a user