Quellcode durchsuchen

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 vor 6 Jahren
Ursprung
Commit
af2d4134e0
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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;
     }