diff --git a/Tests/Tests/STPColorUtilsTest.m b/Tests/Tests/STPColorUtilsTest.m index cc5debece9b..d772004053e 100644 --- a/Tests/Tests/STPColorUtilsTest.m +++ b/Tests/Tests/STPColorUtilsTest.m @@ -31,7 +31,7 @@ - (void)testGrayscaleColorsIsBright { CGColorRelease(cgcolor); } - for (CGFloat white = 0.3001; white < 2; white += 0.1) { + for (CGFloat white = (CGFloat)0.3001; white < 2; white += 0.1) { components[0] = white; CGColorRef cgcolor = CGColorCreate(space, components); UIColor *color = [UIColor colorWithCGColor:cgcolor];