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:
parent
3eb2889e9e
commit
af2d4134e0
@ -1865,7 +1865,7 @@ static void AppendTextFormatForMessageExtensionRange(GPBMessage *message,
|
||||
// Not there yet.
|
||||
continue;
|
||||
}
|
||||
if (fieldNumber > end) {
|
||||
if (fieldNumber >= end) {
|
||||
// Done.
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user