Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #337 from MihaiDamian/master

Minor fixes for warnings reported by static analyzer
  • Loading branch information...
commit e3306855b8b9e593153850c8d18bbe4eb0c34775 2 parents f99ca46 + 3163825
@jogu jogu authored
View
2  Classes/ASIDataCompressor.m
@@ -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 %d",code],NSLocalizedDescriptionKey,nil]];
}
@synthesize streamReady;
View
2  Classes/ASIDataDecompressor.m
@@ -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 %d",code],NSLocalizedDescriptionKey,nil]];
}
@synthesize streamReady;
View
2  iPhone Sample/UploadViewController.m
@@ -43,7 +43,7 @@ - (IBAction)performLargeUpload:(id)sender
//Add the file 8 times to the request, for a total request size around 2MB
int i;
for (i=0; i<8; i++) {
- [request setFile:path forKey:[NSString stringWithFormat:@"file-%hi",i]];
+ [request setFile:path forKey:[NSString stringWithFormat:@"file-%i",i]];
}
[request startAsynchronous];
Please sign in to comment.
Something went wrong with that request. Please try again.