Commit af2d4134 authored by Thomas Van Lenten's avatar Thomas Van Lenten

TextFormat extension printing fix.

If a proto has multiple extension ranges back to back, don't double
print the first items as they also are the ending range of the
previous.
parent 3eb2889e
......@@ -1865,7 +1865,7 @@ static void AppendTextFormatForMessageExtensionRange(GPBMessage *message,
// Not there yet.
continue;
}
if (fieldNumber > end) {
if (fieldNumber >= end) {
// Done.
break;
}
......
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