Skip to content
Browse files

Fixes a warning from CLANG which says:

Values of type 'UInt32' should not be used as format arguments; add an explicit cast to 'unsigned int' instead
  • Loading branch information...
1 parent 235f141 commit 0ef2c5c90e8f16b94e137179f53f5fbc161e3b27 @jivadevoe jivadevoe committed May 15, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 KZColorPicker/ColorPicker/UIColor-Expanded.m
View
4 KZColorPicker/ColorPicker/UIColor-Expanded.m
@@ -325,9 +325,9 @@ - (NSString *)stringFromColor {
- (NSString *)hexStringFromColor
{
if([self alpha] != 1.0)
- return [NSString stringWithFormat:@"%0.8X", self.rgbaHex];
+ return [NSString stringWithFormat:@"%0.8X", (unsigned int)self.rgbaHex];
else
- return [NSString stringWithFormat:@"%0.6X", self.rgbHex];
+ return [NSString stringWithFormat:@"%0.6X", (unsigned int)self.rgbHex];
}
+ (UIColor *)colorWithString:(NSString *)stringToConvert {

0 comments on commit 0ef2c5c

Please sign in to comment.
Something went wrong with that request. Please try again.