Skip to content

Commit

Permalink
Fixed some format specifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
MihaiDamian committed Jul 26, 2012
1 parent f99ca46 commit 3163825
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 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 %d",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 %d",code],NSLocalizedDescriptionKey,nil]];
}

@synthesize streamReady;
Expand Down
2 changes: 1 addition & 1 deletion iPhone Sample/UploadViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 3163825

Please sign in to comment.