Skip to content

Commit

Permalink
fix 6 warnings in xCode 4.3.3 and xCode4.5 DP1
Browse files Browse the repository at this point in the history
  • Loading branch information
V01dZer0 committed Jun 21, 2012
1 parent f99ca46 commit 621867f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Classes/ASIDataCompressor.m
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ + (BOOL)compressDataFromFile:(NSString *)sourcePath toFile:(NSString *)destinati

+ (NSError *)deflateErrorWithCode:(int)code
{
return [NSError errorWithDomain:NetworkRequestErrorDomain code:ASICompressionError userInfo:[NSDictionary dictionaryWithObjectsAndKeys:[NSString stringWithFormat:@"Compression of data failed with code %hi",code],NSLocalizedDescriptionKey,nil]];
return [NSError errorWithDomain:NetworkRequestErrorDomain code:ASICompressionError userInfo:[NSDictionary dictionaryWithObjectsAndKeys:[NSString stringWithFormat:@"Compression of data failed with code %hi",(short)code],NSLocalizedDescriptionKey,nil]];
}

@synthesize streamReady;
Expand Down
2 changes: 1 addition & 1 deletion Classes/ASIDataDecompressor.m
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ + (BOOL)uncompressDataFromFile:(NSString *)sourcePath toFile:(NSString *)destina

+ (NSError *)inflateErrorWithCode:(int)code
{
return [NSError errorWithDomain:NetworkRequestErrorDomain code:ASICompressionError userInfo:[NSDictionary dictionaryWithObjectsAndKeys:[NSString stringWithFormat:@"Decompression of data failed with code %hi",code],NSLocalizedDescriptionKey,nil]];
return [NSError errorWithDomain:NetworkRequestErrorDomain code:ASICompressionError userInfo:[NSDictionary dictionaryWithObjectsAndKeys:[NSString stringWithFormat:@"Decompression of data failed with code %hi",(short)code],NSLocalizedDescriptionKey,nil]];
}

@synthesize streamReady;
Expand Down
2 changes: 1 addition & 1 deletion Classes/S3/ASIS3BucketRequest.m
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ - (void)buildURL
[queryParts addObject:[NSString stringWithFormat:@"delimiter=%@",[[self delimiter] stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]];
}
if ([self maxResultCount] > 0) {
[queryParts addObject:[NSString stringWithFormat:@"max-keys=%hi",[self maxResultCount]]];
[queryParts addObject:[NSString stringWithFormat:@"max-keys=%hi",(short)[self maxResultCount]]];
}
if ([queryParts count]) {
NSString* template = @"%@?%@";
Expand Down
6 changes: 3 additions & 3 deletions External/Reachability/Reachability.m
Original file line number Diff line number Diff line change
Expand Up @@ -161,13 +161,13 @@ static void logNetworkStatus_(const char *name, int line, NetworkStatus status)

switch (status) {
case kNotReachable:
statusString = [NSString stringWithString: @"Not Reachable"];
statusString = @"Not Reachable";
break;
case kReachableViaWWAN:
statusString = [NSString stringWithString: @"Reachable via WWAN"];
statusString = @"Reachable via WWAN";
break;
case kReachableViaWiFi:
statusString = [NSString stringWithString: @"Reachable via WiFi"];
statusString = @"Reachable via WiFi";
break;
}

Expand Down

0 comments on commit 621867f

Please sign in to comment.