Merge pull request #337 from MihaiDamian/master
Minor fixes for warnings reported by static analyzer
Showing
3 changed files
with
3 additions
and
3 deletions
@@ -212,7 +212,7 @@ | @@ -212,7 +212,7 @@ | ||
212 | 212 | ||
213 | + (NSError *)deflateErrorWithCode:(int)code | 213 | + (NSError *)deflateErrorWithCode:(int)code |
214 | { | 214 | { |
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]]; |
216 | } | 216 | } |
217 | 217 | ||
218 | @synthesize streamReady; | 218 | @synthesize streamReady; |
@@ -211,7 +211,7 @@ | @@ -211,7 +211,7 @@ | ||
211 | 211 | ||
212 | + (NSError *)inflateErrorWithCode:(int)code | 212 | + (NSError *)inflateErrorWithCode:(int)code |
213 | { | 213 | { |
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]]; |
215 | } | 215 | } |
216 | 216 | ||
217 | @synthesize streamReady; | 217 | @synthesize streamReady; |
@@ -43,7 +43,7 @@ | @@ -43,7 +43,7 @@ | ||
43 | //Add the file 8 times to the request, for a total request size around 2MB | 43 | //Add the file 8 times to the request, for a total request size around 2MB |
44 | int i; | 44 | int i; |
45 | for (i=0; i<8; i++) { | 45 | 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]]; |
47 | } | 47 | } |
48 | 48 | ||
49 | [request startAsynchronous]; | 49 | [request startAsynchronous]; |
-
Please register or login to post a comment