From 3ad6b2b75bbd5d59579a7d0fe8acee39d0e3a588 Mon Sep 17 00:00:00 2001 From: Kent Sutherland Date: Sun, 29 Sep 2019 00:12:55 -0400 Subject: [PATCH] Add explicit casts to silence Xcode 11 warnings --- Sparkle/SPUURLRequest.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sparkle/SPUURLRequest.m b/Sparkle/SPUURLRequest.m index 31bbc40a..f70bf648 100644 --- a/Sparkle/SPUURLRequest.m +++ b/Sparkle/SPUURLRequest.m @@ -61,9 +61,9 @@ static NSString *SPUURLRequestNetworkServiceTypeKey = @"SPUURLRequestNetworkServ - (void)encodeWithCoder:(NSCoder *)coder { [coder encodeObject:self.url forKey:SPUURLRequestURLKey]; - [coder encodeInteger:self.cachePolicy forKey:SPUURLRequestCachePolicyKey]; + [coder encodeInteger:(NSInteger)self.cachePolicy forKey:SPUURLRequestCachePolicyKey]; [coder encodeDouble:self.timeoutInterval forKey:SPUURLRequestTimeoutIntervalKey]; - [coder encodeInteger:self.networkServiceType forKey:SPUURLRequestNetworkServiceTypeKey]; + [coder encodeInteger:(NSInteger)self.networkServiceType forKey:SPUURLRequestNetworkServiceTypeKey]; if (self.httpHeaderFields != nil) { [coder encodeObject:self.httpHeaderFields forKey:SPUURLRequestHttpHeaderFieldsKey];