Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'fix-32-64-bit-compiler-warnings' into development

Closes #431.
  • Loading branch information...
commit a5837845a895d50b7146c314617748751c8b8304 2 parents ef2bc87 + df7b100
@jverkoey jverkoey authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/Three20Style/Headers/TTGlobalStyle.h
View
6 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
Please sign in to comment.
Something went wrong with that request. Please try again.