Skip to content

Commit

Permalink
Clarified that SDL_memset4 is a 32-bit assignment and fixed a compile…
Browse files Browse the repository at this point in the history
…r warning
  • Loading branch information
slouken committed Nov 3, 2013
1 parent cd37485 commit 2efd406
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/SDL_stdinc.h
Expand Up @@ -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)))

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

0 comments on commit 2efd406

Please sign in to comment.