unsigned int -> NSUInteger

pull/16190/head
Muxi Yan 6 years ago
parent 647e24c190
commit 35f6ab959e
  1. 10
      src/objective-c/GRPCClient/private/GRPCChannelPool.m

@ -104,9 +104,9 @@ extern const char *kCFStreamVarName;
if (_callOptions.keepaliveInterval != 0) { if (_callOptions.keepaliveInterval != 0) {
args[@GRPC_ARG_KEEPALIVE_TIME_MS] = args[@GRPC_ARG_KEEPALIVE_TIME_MS] =
[NSNumber numberWithUnsignedInteger:(unsigned int)(_callOptions.keepaliveInterval * 1000)]; [NSNumber numberWithUnsignedInteger:(NSUInteger)(_callOptions.keepaliveInterval * 1000)];
args[@GRPC_ARG_KEEPALIVE_TIMEOUT_MS] = args[@GRPC_ARG_KEEPALIVE_TIMEOUT_MS] =
[NSNumber numberWithUnsignedInteger:(unsigned int)(_callOptions.keepaliveTimeout * 1000)]; [NSNumber numberWithUnsignedInteger:(NSUInteger)(_callOptions.keepaliveTimeout * 1000)];
} }
if (_callOptions.retryEnabled == NO) { if (_callOptions.retryEnabled == NO) {
@ -115,15 +115,15 @@ extern const char *kCFStreamVarName;
if (_callOptions.connectMinTimeout > 0) { if (_callOptions.connectMinTimeout > 0) {
args[@GRPC_ARG_MIN_RECONNECT_BACKOFF_MS] = args[@GRPC_ARG_MIN_RECONNECT_BACKOFF_MS] =
[NSNumber numberWithUnsignedInteger:(unsigned int)(_callOptions.connectMinTimeout * 1000)]; [NSNumber numberWithUnsignedInteger:(NSUInteger)(_callOptions.connectMinTimeout * 1000)];
} }
if (_callOptions.connectInitialBackoff > 0) { if (_callOptions.connectInitialBackoff > 0) {
args[@GRPC_ARG_INITIAL_RECONNECT_BACKOFF_MS] = [NSNumber args[@GRPC_ARG_INITIAL_RECONNECT_BACKOFF_MS] = [NSNumber
numberWithUnsignedInteger:(unsigned int)(_callOptions.connectInitialBackoff * 1000)]; numberWithUnsignedInteger:(NSUInteger)(_callOptions.connectInitialBackoff * 1000)];
} }
if (_callOptions.connectMaxBackoff > 0) { if (_callOptions.connectMaxBackoff > 0) {
args[@GRPC_ARG_MAX_RECONNECT_BACKOFF_MS] = args[@GRPC_ARG_MAX_RECONNECT_BACKOFF_MS] =
[NSNumber numberWithUnsignedInteger:(unsigned int)(_callOptions.connectMaxBackoff * 1000)]; [NSNumber numberWithUnsignedInteger:(NSUInteger)(_callOptions.connectMaxBackoff * 1000)];
} }
if (_callOptions.logContext != nil) { if (_callOptions.logContext != nil) {

Loading…
Cancel
Save