소스 검색

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 년 전
부모
커밋
af2d4134e0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;
     }