Fix `shorten-64-to-32` warning in `GRPCChannel`

Per: https://github.com/grpc/grpc/issues/20122 this change avoids the `shorten-64-to-32` warning by calling the correct `NSNumber` factory method for an `NSUInteger` (the base type for the `GRPCCompressionAlgorithm` enum)
pull/20123/head
Steven E Wright 5 years ago committed by GitHub
parent be4318810c
commit 88f5f130dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/objective-c/GRPCClient/private/GRPCChannel.m

@ -103,7 +103,7 @@
if (_callOptions.compressionAlgorithm != GRPC_COMPRESS_NONE) { if (_callOptions.compressionAlgorithm != GRPC_COMPRESS_NONE) {
args[@GRPC_COMPRESSION_CHANNEL_DEFAULT_ALGORITHM] = args[@GRPC_COMPRESSION_CHANNEL_DEFAULT_ALGORITHM] =
[NSNumber numberWithInt:_callOptions.compressionAlgorithm]; [NSNumber numberWithInteger:_callOptions.compressionAlgorithm];
} }
if (_callOptions.keepaliveInterval != 0) { if (_callOptions.keepaliveInterval != 0) {

Loading…
Cancel
Save