include/SDL_endian.h
changeset 3067 bcd41b269091
parent 3013 8cc00819c8d6
child 3407 d3baf5ac4e37
     1.1 --- a/include/SDL_endian.h	Sun Feb 15 06:12:52 2009 +0000
     1.2 +++ b/include/SDL_endian.h	Tue Feb 17 04:57:39 2009 +0000
     1.3 @@ -174,9 +174,9 @@
     1.4      Uint32 hi, lo;
     1.5  
     1.6      /* Separate into high and low 32-bit values and swap them */
     1.7 -    lo = (Uint32) (x & 0xFFFFFFFF);
     1.8 +    lo = SDL_static_cast(Uint32, x & 0xFFFFFFFF);
     1.9      x >>= 32;
    1.10 -    hi = (Uint32) (x & 0xFFFFFFFF);
    1.11 +    hi = SDL_static_cast(Uint32, x & 0xFFFFFFFF);
    1.12      x = SDL_Swap32(lo);
    1.13      x <<= 32;
    1.14      x |= SDL_Swap32(hi);