Skip to content
Snippets Groups Projects
Commit 8c768193 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

fix warning
parent eff8fd74
No related branches found
No related tags found
No related merge requests found
......@@ -27,13 +27,13 @@
// headers.
#if defined(HAVE_BIG_ENDIAN)
# define PACK_COLOR(R,G,B,A) ( (R)<<24 | (G)<<16 | (B)<<8 | (A) )
# define PACK_COLOR(R,G,B,A) ( (unsigned int)((R)<<24 | (G)<<16 | (B)<<8 | (A)) )
# define UNPACK_RED(X) ( ( (X) >> 24 ) & 0xff )
# define UNPACK_GREEN(X) ( ( (X) >> 16 ) & 0xff )
# define UNPACK_BLUE(X) ( ( (X) >> 8 ) & 0xff )
# define UNPACK_ALPHA(X) ( (X) & 0xff )
#else
# define PACK_COLOR(R,G,B,A) ( (A)<<24 | (B)<<16 | (G)<<8 | (R) )
# define PACK_COLOR(R,G,B,A) ( (unsigned int)((A)<<24 | (B)<<16 | (G)<<8 | (R)) )
# define UNPACK_RED(X) ( (X) & 0xff )
# define UNPACK_GREEN(X) ( ( (X) >> 8 ) & 0xff )
# define UNPACK_BLUE(X) ( ( (X) >> 16 ) & 0xff )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment