aboutsummaryrefslogtreecommitdiffstats
path: root/Source/MGTemplateStandardFilters.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-01-09 01:38:23 +0000
committerrowanbeentje <rowan@beent.je>2010-01-09 01:38:23 +0000
commit9004533ba1d84d670a77cbfc9eae401b66e9dd0e (patch)
tree8d16781c788a964e45102b66ffc04b77fa1fb9e9 /Source/MGTemplateStandardFilters.m
parentfcb6ce6cbb0bd4179e22a3dd17dd12e4a3529cdd (diff)
downloadsequelpro-9004533ba1d84d670a77cbfc9eae401b66e9dd0e.tar.gz
sequelpro-9004533ba1d84d670a77cbfc9eae401b66e9dd0e.tar.bz2
sequelpro-9004533ba1d84d670a77cbfc9eae401b66e9dd0e.zip
- Upgrade Sequel Pro to be compiled as a 3-way PPC/i386/x86_64 binary for release builds, including a large number of 64bit compatibility upgrades and tweaks
- Upgrade RegexKitLite to 3.3
Diffstat (limited to 'Source/MGTemplateStandardFilters.m')
-rw-r--r--Source/MGTemplateStandardFilters.m7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/MGTemplateStandardFilters.m b/Source/MGTemplateStandardFilters.m
index 45f1d51d..1453d949 100644
--- a/Source/MGTemplateStandardFilters.m
+++ b/Source/MGTemplateStandardFilters.m
@@ -68,10 +68,11 @@
return @"000000";
const CGFloat *components = CGColorGetComponents(color);
+#warning 64BIT: Check formatting arguments
NSString *colorHex = [NSString stringWithFormat:@"%02x%02x%02x",
- (int)(components[0] * 255),
- (int)(components[1] * 255),
- (int)(components[2] * 255)];
+ (NSInteger)(components[0] * 255),
+ (NSInteger)(components[1] * 255),
+ (NSInteger)(components[2] * 255)];
return colorHex;
#else
NSColor *color = [(NSColor *)value colorUsingColorSpaceName:NSCalibratedRGBColorSpace];