Skip to content

Commit

Permalink
Clean up a lot of incorrect floating point constants (i.e., CGFloat, …
Browse files Browse the repository at this point in the history
…which is of type `float`, should have constants that are non-integer, floating point (1.0) and have a `f` appended to them: `1.0f`).
  • Loading branch information
johnezang committed Jul 22, 2011
1 parent d612efd commit ec07824
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TTTAttributedLabel.m
Expand Up @@ -323,8 +323,8 @@ - (void)drawTextInRect:(CGRect)rect {

CGContextRef c = UIGraphicsGetCurrentContext();
CGContextSetTextMatrix(c, CGAffineTransformIdentity);
CGContextTranslateCTM(c, 0, self.bounds.size.height);
CGContextScaleCTM(c, 1.0, -1.0);
CGContextTranslateCTM(c, 0.0f, self.bounds.size.height);
CGContextScaleCTM(c, 1.0f, -1.0f);

CGMutablePathRef path = CGPathCreateMutable();
CGPathAddRect(path, NULL, rect);
Expand Down

0 comments on commit ec07824

Please sign in to comment.