Skip to content

Commit f689659

Browse files
David Keeganstig
authored andcommitted
Avoid implicit cast
1 parent fbd3624 commit f689659

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Classes/SBJsonStreamWriter.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ - (BOOL)writeString:(NSString*)string {
292292
const char *utf8 = [string UTF8String];
293293
NSUInteger written = 0, i = 0;
294294

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

298298
for (i = 0; i < len; i++) {

0 commit comments

Comments
 (0)