Skip to content

Commit

Permalink
Clarify software in builtin serialize.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
Wuzzy2 committed Oct 27, 2024
1 parent fa31d4c commit 2d6a0f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/common/serialize.lua
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ function core.deserialize(str, safe)
local func, err = loadstring(str)
if not func then return nil, err end

-- math.huge was serialized to inf and NaNs to nan by Lua in version 5.6, so we have to support this here
-- math.huge was serialized to inf and NaNs to nan by Lua in engine version 5.6, so we have to support this here
local env = {inf = math_huge, nan = 0/0}
if safe then
env.loadstring = dummy_func
Expand Down

0 comments on commit 2d6a0f4

Please sign in to comment.