From a9b99e7f5b14a930a4c64094fa7c88d0cfb18d3e Mon Sep 17 00:00:00 2001 From: Stephan Diederich Date: Fri, 25 Feb 2011 20:09:11 +0100 Subject: [PATCH] [Style] fix 64 to 32 bit compiler warnings those should be floats, not doubles warning text: "warning: implicit conversion shortens 64-bit value into a 32-bit value" --- src/Three20Style/Headers/TTGlobalStyle.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Three20Style/Headers/TTGlobalStyle.h b/src/Three20Style/Headers/TTGlobalStyle.h index ce10a4dd00..1d1f765dc0 100644 --- a/src/Three20Style/Headers/TTGlobalStyle.h +++ b/src/Three20Style/Headers/TTGlobalStyle.h @@ -31,14 +31,14 @@ extern const CGFloat ttkRounded; /////////////////////////////////////////////////////////////////////////////////////////////////// // Color helpers -#define RGBCOLOR(r,g,b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1] -#define RGBACOLOR(r,g,b,a) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 \ +#define RGBCOLOR(r,g,b) [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:1] +#define RGBACOLOR(r,g,b,a) [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f \ alpha:(a)] #define HSVCOLOR(h,s,v) [UIColor colorWithHue:(h) saturation:(s) value:(v) alpha:1] #define HSVACOLOR(h,s,v,a) [UIColor colorWithHue:(h) saturation:(s) value:(v) alpha:(a)] -#define RGBA(r,g,b,a) (r)/255.0, (g)/255.0, (b)/255.0, (a) +#define RGBA(r,g,b,a) (r)/255.0f, (g)/255.0f, (b)/255.0f, (a) /////////////////////////////////////////////////////////////////////////////////////////////////// // Style helpers