Explorar o código

Add cast to avoid warning on Xcode 12.

Thomas Van Lenten %!s(int64=5) %!d(string=hai) anos
pai
achega
9c27f6a479
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      objectivec/Tests/GPBTestUtilities.m

+ 1 - 1
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];