Browse Source

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.
Thomas Van Lenten 6 năm trước cách đây
mục cha
commit
af2d4134e0
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      objectivec/GPBUtilities.m

+ 1 - 1
objectivec/GPBUtilities.m

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