Mercurial > hg > openttd
changeset 18355:45af8ae925f5 draft
(svn r23191) -Fix: GCC 4.7 compilation warnings related to narrowing in palettes
author | rubidium <rubidium@openttd.org> |
---|---|
date | Fri, 11 Nov 2011 19:47:28 +0000 |
parents | e6488c86891e |
children | 2b675888ed9d |
files | src/table/palettes.h |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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] = {