commit | af2d4134e0224b00c0e9b76c47c11a53e6395e2c | [log] [tgz] |
---|---|---|
author | Thomas Van Lenten <thomasvl@google.com> | Wed Nov 14 16:09:43 2018 -0500 |
committer | Thomas Van Lenten <thomasvl@google.com> | Wed Nov 14 17:06:51 2018 -0500 |
tree | a043d0069cd1cc9b74961db504067c04fb433581 | |
parent | 3eb2889e9e24a23587a9a4e2f554bc0b249f0f80 [diff] |
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.
diff --git a/objectivec/GPBUtilities.m b/objectivec/GPBUtilities.m index 72b5135..0d3a080 100644 --- a/objectivec/GPBUtilities.m +++ b/objectivec/GPBUtilities.m
@@ -1865,7 +1865,7 @@ // Not there yet. continue; } - if (fieldNumber > end) { + if (fieldNumber >= end) { // Done. break; }