Permalink
Browse files

cast max depth value to ensure format specifier is correct both on iO…

…S and OSX
  • Loading branch information...
1 parent da1485f commit 5de13581d93c67fd3a7ab44811ba93ef0110cd2f @stig committed Aug 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Classes/SBJsonStreamParser.m
@@ -112,7 +112,7 @@ - (NSString*)tokenName:(sbjson_token_t)token {
}
- (void)maxDepthError {
- self.error = [NSString stringWithFormat:@"Input depth exceeds max depth of %u", maxDepth];
+ self.error = [NSString stringWithFormat:@"Input depth exceeds max depth of %lu", (unsigned long)maxDepth];
self.state = [SBJsonStreamParserStateError sharedInstance];
}

0 comments on commit 5de1358

Please sign in to comment.