diff include/SDL_endian.h @ 4283:cd511a8560b7 SDL-1.2

Ozkan Sezer 2009-04-01 23:17:13 PDT This change should be applied to the 1.2 branch, too, because the svn version SDL_net requires it.
author Sam Lantinga <slouken@libsdl.org>
date Thu, 08 Oct 2009 07:45:55 +0000
parents 4c4113c2162c
children 124629b76853
line wrap: on
line diff
--- a/include/SDL_endian.h	Thu Oct 08 07:09:04 2009 +0000
+++ b/include/SDL_endian.h	Thu Oct 08 07:45:55 2009 +0000
@@ -160,9 +160,9 @@
 	Uint32 hi, lo;
 
 	/* Separate into high and low 32-bit values and swap them */
-	lo = (Uint32)(x&0xFFFFFFFF);
+	lo = SDL_static_cast(Uint32, x & 0xFFFFFFFF);
 	x >>= 32;
-	hi = (Uint32)(x&0xFFFFFFFF);
+	hi = SDL_static_cast(Uint32, x & 0xFFFFFFFF);
 	x = SDL_Swap32(lo);
 	x <<= 32;
 	x |= SDL_Swap32(hi);