diff options
author | rowanbeentje <rowan@beent.je> | 2013-05-21 22:53:10 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2013-05-21 22:53:10 +0000 |
commit | 2737ac00c38513d976fda08104a5014221b0c99c (patch) | |
tree | 38829f7d5d9982b9648259cae0a269ef1640dd18 /Source/SPColorAdditions.m | |
parent | 9432986de1d25527b133715ab12a8dffc2c5f6b6 (diff) | |
download | sequelpro-2737ac00c38513d976fda08104a5014221b0c99c.tar.gz sequelpro-2737ac00c38513d976fda08104a5014221b0c99c.tar.bz2 sequelpro-2737ac00c38513d976fda08104a5014221b0c99c.zip |
- Fix all the Xcode 4.6.2 build warnings, and tweak warning settings to enable some more
Diffstat (limited to 'Source/SPColorAdditions.m')
-rw-r--r-- | Source/SPColorAdditions.m | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/SPColorAdditions.m b/Source/SPColorAdditions.m index e3075c6e..92e9db31 100644 --- a/Source/SPColorAdditions.m +++ b/Source/SPColorAdditions.m @@ -46,10 +46,10 @@ if(aColor) { [aColor getRed:&red green:&green blue:&blue alpha:&alpha]; - redHexValue = [NSString stringWithFormat:@"%02X", (NSInteger)(red * 255.0f)]; - greenHexValue = [NSString stringWithFormat:@"%02X", (NSInteger)(green * 255.0f)]; - blueHexValue = [NSString stringWithFormat:@"%02X", (NSInteger)(blue * 255.0f)]; - alphaHexValue = [NSString stringWithFormat:@"%02X", (NSInteger)(alpha * 255.0f)]; + redHexValue = [NSString stringWithFormat:@"%02lX", (long)(red * 255.0f)]; + greenHexValue = [NSString stringWithFormat:@"%02lX", (long)(green * 255.0f)]; + blueHexValue = [NSString stringWithFormat:@"%02lX", (long)(blue * 255.0f)]; + alphaHexValue = [NSString stringWithFormat:@"%02lX", (long)(alpha * 255.0f)]; if([alphaHexValue isEqualToString:@"FF"]) alphaHexValue = @""; return [NSString stringWithFormat:@"#%@%@%@%@", redHexValue, greenHexValue, blueHexValue, alphaHexValue]; } |