Skip to content
Browse files

Fixed bug #451

SDL_memset4 copies a 32-bit value, not an 8-bit value.
  • Loading branch information
slouken committed Jul 8, 2007
1 parent 47bfbaf commit 34900d1bbd566e67a5f1a9e647420ffc5dd51bbe
Showing with 1 addition and 4 deletions.
  1. +1 −4 include/SDL_stdinc.h
@@ -238,10 +238,7 @@ extern DECLSPEC void SDLCALL SDL_qsort(void *base, size_t nmemb, size_t size,
extern DECLSPEC void * SDLCALL SDL_memset(void *dst, int c, size_t len);

/* We can count on memset existing on Mac OS X and being well-tuned. */
#if defined(__MACH__) && defined(__APPLE__)
#define SDL_memset4(dst, val, len) memset(dst, val, (len)*4)
#elif defined(__GNUC__) && defined(i386)
#if defined(__GNUC__) && defined(i386)
#define SDL_memset4(dst, val, len) \
do { \
int u0, u1, u2; \

0 comments on commit 34900d1

Please sign in to comment.