Skip to content
This repository has been archived by the owner on Jul 18, 2022. It is now read-only.

Commit

Permalink
Fixes a warning from CLANG which says:
Browse files Browse the repository at this point in the history
Values of type 'UInt32' should not be used as format arguments; add an explicit cast to 'unsigned int' instead
  • Loading branch information
jivadevoe committed May 15, 2013
1 parent 235f141 commit 0ef2c5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions KZColorPicker/ColorPicker/UIColor-Expanded.m
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0ef2c5c

Please sign in to comment.