Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix 32 64 bit compiler warnings #431

Closed
wants to merge 1 commit into from

2 participants

@jverkoey

those should be floats, not doubles

warning text:
"warning: implicit conversion shortens 64-bit value into a 32-bit value"

@diederich diederich [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"
a9b99e7
@jverkoey

This looks pretty reasonable.

@jverkoey

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

Closed by a583784.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 25, 2011
  1. @diederich

    [Style] fix 64 to 32 bit compiler warnings

    diederich authored
    those should be floats, not doubles
    
    warning text:
    "warning: implicit conversion shortens 64-bit value into a 32-bit value"
This page is out of date. Refresh to see the latest.
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
Something went wrong with that request. Please try again.