Open
Description
Using the following schema
package integer64;
message TestSigned64
{
optional int64 int64_ = 1;
}
the following code fails on the last assertion when run with lua5.1.5, but passes when run with luajit 2.04
local pb = require"pb"
local integer64 = require"protos.int64"
local msg = integer64.TestSigned64()
msg.int64_ = -1;
binary,err = msg:Serialize();
assert(not err)
local decoded = integer64.TestSigned64():Parse(binary)
assert(decoded:IsInitialized())
assert(decoded:HasField('int64_'))
assert(-1 == decoded.int64_)
Metadata
Metadata
Assignees
Labels
No labels