Skip to content

Commit

Permalink
Fix string formatting type length mismatch.
Browse files Browse the repository at this point in the history
  • Loading branch information
fcanas committed Oct 11, 2012
1 parent e061642 commit 6b5a39a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions UIColor+Expanded.m
Expand Up @@ -507,7 +507,7 @@ - (NSString *)stringFromColor {

- (NSString *)hexStringFromColor {

return [NSString stringWithFormat:@"%0.6X", self.rgbHex];
return [NSString stringWithFormat:@"%0.6lX", self.rgbHex];
}

- (NSString *)cssStringFromColor {
Expand Down Expand Up @@ -577,7 +577,7 @@ - (NSString *)closestCrayonName {

- (NSString *)hexStringFromColorAndAlpha {

return [NSString stringWithFormat:@"%0.8X", self.rgbaHex];
return [NSString stringWithFormat:@"%0.8lX", self.rgbaHex];
}

+ (UIColor *)colorWithString:(NSString *)stringToConvert {
Expand Down

0 comments on commit 6b5a39a

Please sign in to comment.