From 39263445b07e10256a1f232fc7f58a341bec3cbf Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 11 Nov 2011 19:47:28 +0000 Subject: (svn r23191) -Fix: GCC 4.7 compilation warnings related to narrowing in palettes --- src/table/palettes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/table/palettes.h b/src/table/palettes.h index 5998bc9dc..6f246ba68 100644 --- a/src/table/palettes.h +++ b/src/table/palettes.h @@ -11,7 +11,7 @@ #include "../core/endian_type.hpp" -#define M(r, g, b) { 0xff << 24 | (r) << 16 | (g) << 8 | (b) } +#define M(r, g, b) { 0xFF000000U | (r) << 16 | (g) << 8 | (b) } /** Colour palette (DOS) */ static const Colour _palette[256] = { -- cgit v1.2.3-70-g09d2