Commit 668eb3b4 authored by Thomas Van Lenten's avatar Thomas Van Lenten

Fix decoding of overencoded booleans.

if the value was >32bit with the low bits all being zero, it was decoded as
false instead of as true.

Fixes #6863
parent db586e46
......@@ -203,7 +203,7 @@ int64_t GPBCodedInputStreamReadSInt64(GPBCodedInputStreamState *state) {
}
BOOL GPBCodedInputStreamReadBool(GPBCodedInputStreamState *state) {
return ReadRawVarint32(state) != 0;
return ReadRawVarint64(state) != 0;
}
int32_t GPBCodedInputStreamReadTag(GPBCodedInputStreamState *state) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment