Browse Source

Clarified that SDL_memset4 is a 32-bit assignment and fixed a compiler warning

Sam Lantinga 11 years ago
parent
commit
2efd40652d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/SDL_stdinc.h

+ 1 - 1
include/SDL_stdinc.h

@@ -255,7 +255,7 @@ extern DECLSPEC void *SDLCALL SDL_memset(void *dst, int c, size_t len);
 #define SDL_zerop(x) SDL_memset((x), 0, sizeof(*(x)))
 #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. */
 /* 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)
 #if defined(__GNUC__) && defined(i386)
     int u0, u1, u2;
     int u0, u1, u2;