Skip to content

error when key is huge int string #46

@freedom12

Description

@freedom12
local t = {
    ["1111111111111111111111111"] = true,
    ["foo"] = true
}
util.serpent.block(t)

errorKey = [string "util/serpent.lua"]:101: bad argument #1 to 'format' (number has no integer representation)
stack traceback:
[C]: in function 'string.format'
[string "util/serpent.lua"]:101: in function <[string "util/serpent.lua"]:100>
[C]: in function 'string.gsub'
[string "util/serpent.lua"]:107: in function <[string "util/serpent.lua"]:105>
[C]: in function 'table.sort'
[string "util/serpent.lua"]:103: in upvalue 'alphanumsort'
[string "util/serpent.lua"]:167: in local 'val2str'
[string "util/serpent.lua"]:219: in function <[string "util/serpent.lua"]:51>

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions