mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 04:04:19 +00:00
[Lua] Fix EnforceNumberAndPack for bool type (#6576)
This commit is contained in:
@@ -73,7 +73,7 @@ local bool_mt =
|
||||
ValidNumber = function(self, n) return true end, -- anything is a valid boolean in Lua
|
||||
EnforceNumber = function(self, n) end, -- anything is a valid boolean in Lua
|
||||
EnforceNumbers = function(self, a, b) end, -- anything is a valid boolean in Lua
|
||||
EnforceNumberAndPack = function(self, n) return self:Pack(value) end,
|
||||
EnforceNumberAndPack = function(self, n) return self:Pack(n) end,
|
||||
}
|
||||
|
||||
local uint8_mt =
|
||||
|
||||
Reference in New Issue
Block a user