Skip to content

Commit

Permalink
values of type 'NSInteger' should not be used as format arguments;
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinzhow committed Jun 24, 2015
1 parent f2008bf commit a5816ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PNChart/PNLineChart.m
Original file line number Diff line number Diff line change
Expand Up @@ -1026,7 +1026,7 @@ -(void)setGradeFrame:(CATextLayer*)textLayer grade:(CGFloat)grade pointCenter:(C
[self.layer addSublayer:textLayer];
[textLayer setFontSize:textheigt/2];

[textLayer setString:[[NSString alloc]initWithFormat:@"%ld",(NSInteger)(grade*100)]];
[textLayer setString:[[NSString alloc]initWithFormat:@"%d",(int)(grade*100)]];
[textLayer setFrame:CGRectMake(0, 0, textWidth, textheigt)];
[textLayer setPosition:CGPointMake(pointCenter.x, textStartPosY)];
textLayer.contentsScale = [UIScreen mainScreen].scale;
Expand Down

0 comments on commit a5816ce

Please sign in to comment.