Clarified that SDL_memset4 is a 32-bit assignment and fixed a compiler warning
authorSam Lantinga <slouken@libsdl.org>
Sun, 03 Nov 2013 09:42:23 -0800
changeset 7901ae8600f0916a
parent 7900 cc2289c332eb
child 7902 0c2e2b91eeea
Clarified that SDL_memset4 is a 32-bit assignment and fixed a compiler warning
include/SDL_stdinc.h
     1.1 --- a/include/SDL_stdinc.h	Sat Nov 02 12:07:21 2013 +0100
     1.2 +++ b/include/SDL_stdinc.h	Sun Nov 03 09:42:23 2013 -0800
     1.3 @@ -255,7 +255,7 @@
     1.4  #define SDL_zerop(x) SDL_memset((x), 0, sizeof(*(x)))
     1.5  
     1.6  /* Note that memset() is a byte assignment and this is a 32-bit assignment, so they're not directly equivalent. */
     1.7 -SDL_FORCE_INLINE void SDL_memset4(void *dst, int val, size_t dwords)
     1.8 +SDL_FORCE_INLINE void SDL_memset4(void *dst, Uint32 val, size_t dwords)
     1.9  {
    1.10  #if defined(__GNUC__) && defined(i386)
    1.11      int u0, u1, u2;