Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed bug #451
Browse files Browse the repository at this point in the history
SDL_memset4 copies a 32-bit value, not an 8-bit value.
  • Loading branch information
slouken committed Jul 8, 2007
1 parent d6b9354 commit dff6187
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions include/SDL_stdinc.h
Expand Up @@ -279,10 +279,7 @@ extern DECLSPEC void *SDLCALL SDL_memset(void *dst, int c, size_t len);
#define SDL_zero(x) SDL_memset(&(x), 0, sizeof((x)))
#define SDL_zerop(x) SDL_memset((x), 0, sizeof(*(x)))

/* 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; \
Expand Down

0 comments on commit dff6187

Please sign in to comment.