Skip to content

Commit

Permalink
Avoid implicit cast
Browse files Browse the repository at this point in the history
  • Loading branch information
David Keegan authored and stig committed Jul 8, 2011
1 parent 440738d commit 86da943
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/SBJsonStreamWriter.m
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ - (BOOL)writeString:(NSString*)string {
const char *utf8 = [string UTF8String];
NSUInteger written = 0, i = 0;

buf = [NSMutableData dataWithCapacity:len * 1.1f];
buf = [NSMutableData dataWithCapacity:(NSUInteger)(len * 1.1f)];
[buf appendBytes:"\"" length:1];

for (i = 0; i < len; i++) {
Expand Down

0 comments on commit 86da943

Please sign in to comment.