Skip to content

Commit e330685

Browse files
committed
Merge pull request pokeb#337 from MihaiDamian/master
Minor fixes for warnings reported by static analyzer
2 parents f99ca46 + 3163825 commit e330685

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Classes/ASIDataCompressor.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ + (BOOL)compressDataFromFile:(NSString *)sourcePath toFile:(NSString *)destinati
212212

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

218218
@synthesize streamReady;

Classes/ASIDataDecompressor.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ + (BOOL)uncompressDataFromFile:(NSString *)sourcePath toFile:(NSString *)destina
211211

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

217217
@synthesize streamReady;

iPhone Sample/UploadViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ - (IBAction)performLargeUpload:(id)sender
4343
//Add the file 8 times to the request, for a total request size around 2MB
4444
int i;
4545
for (i=0; i<8; i++) {
46-
[request setFile:path forKey:[NSString stringWithFormat:@"file-%hi",i]];
46+
[request setFile:path forKey:[NSString stringWithFormat:@"file-%i",i]];
4747
}
4848

4949
[request startAsynchronous];

0 commit comments

Comments
 (0)