From 9c27f6a47972cd17dede15754d4f0d1f726ce4f7 Mon Sep 17 00:00:00 2001 From: Thomas Van Lenten Date: Wed, 21 Oct 2020 13:41:15 -0400 Subject: [PATCH] Add cast to avoid warning on Xcode 12. --- objectivec/Tests/GPBTestUtilities.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/objectivec/Tests/GPBTestUtilities.m b/objectivec/Tests/GPBTestUtilities.m index 0362bdde64..48d75e794a 100644 --- a/objectivec/Tests/GPBTestUtilities.m +++ b/objectivec/Tests/GPBTestUtilities.m @@ -779,7 +779,7 @@ const uint32_t kGPBDefaultRepeatCount = 2; [message.repeatedSfixed64Array addValue:210 + i * 100]; [message.repeatedFloatArray addValue:211 + i * 100]; [message.repeatedDoubleArray addValue:212 + i * 100]; - [message.repeatedBoolArray addValue:(i % 2)]; + [message.repeatedBoolArray addValue:(BOOL)(i % 2)]; NSString *string = [[NSString alloc] initWithFormat:@"%d", 215 + i * 100]; [message.repeatedStringArray addObject:string]; [string release];