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