From af2d4134e0224b00c0e9b76c47c11a53e6395e2c Mon Sep 17 00:00:00 2001 From: Thomas Van Lenten Date: Wed, 14 Nov 2018 16:09:43 -0500 Subject: [PATCH] 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. --- objectivec/GPBUtilities.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/objectivec/GPBUtilities.m b/objectivec/GPBUtilities.m index 72b513528..0d3a08008 100644 --- a/objectivec/GPBUtilities.m +++ b/objectivec/GPBUtilities.m @@ -1865,7 +1865,7 @@ static void AppendTextFormatForMessageExtensionRange(GPBMessage *message, // Not there yet. continue; } - if (fieldNumber > end) { + if (fieldNumber >= end) { // Done. break; }