We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
int32.proto:
message TestInt32 { optional int32 int32_ = 1; }
The following test fails when value is a negative number:
local pb = require"pb" local value = -1 local integer32 = require"int32"
local msg = integer32.TestInt32() msg.int32_ = value; binary,err = msg:Serialize(); assert(not err)
local decoded = integer32.TestInt32():Parse(binary) assert(decoded:IsInitialized()) assert(decoded:HasField('int32_')) assert(value == decoded.int32_)
(similar to #35 )
The text was updated successfully, but these errors were encountered:
fix issue Neopallium#38 - decode negative int32
c6a1f73
No branches or pull requests
int32.proto:
message TestInt32
{
optional int32 int32_ = 1;
}
The following test fails when value is a negative number:
local pb = require"pb"
local value = -1
local integer32 = require"int32"
local msg = integer32.TestInt32()
msg.int32_ = value;
binary,err = msg:Serialize();
assert(not err)
local decoded = integer32.TestInt32():Parse(binary)
assert(decoded:IsInitialized())
assert(decoded:HasField('int32_'))
assert(value == decoded.int32_)
(similar to #35 )
The text was updated successfully, but these errors were encountered: