Permalink
Browse files

Fixed some format specifiers

  • Loading branch information...
1 parent f99ca46 commit 3163825affe1699e40f61d9fecd1eb310d5330f0 @MihaiDamian MihaiDamian committed Jul 26, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 Classes/ASIDataCompressor.m
  2. +1 −1 Classes/ASIDataDecompressor.m
  3. +1 −1 iPhone Sample/UploadViewController.m
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];

0 comments on commit 3163825

Please sign in to comment.