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.
This commit is contained in:
Thomas Van Lenten 2018-11-14 16:09:43 -05:00
parent 3eb2889e9e
commit af2d4134e0

View File

@ -1865,7 +1865,7 @@ static void AppendTextFormatForMessageExtensionRange(GPBMessage *message,
// Not there yet.
continue;
}
if (fieldNumber > end) {
if (fieldNumber >= end) {
// Done.
break;
}