diff options
author | Ryan C. Gordon <icculus@icculus.org> | 2006-11-29 10:30:05 +0000 |
---|---|---|
committer | Ryan C. Gordon <icculus@icculus.org> | 2006-11-29 10:30:05 +0000 |
commit | 93d39fdd2efa1b72bd15c3bc6065d7ea3d94f1ca (patch) | |
tree | cc2f11bce056078efc1aafc6731858612ef31e98 | |
parent | f9f9931c9cdaf39da8441693a7ebf0adf6d1a77c (diff) | |
download | sdl-93d39fdd2efa1b72bd15c3bc6065d7ea3d94f1ca.tar.gz |
Wrapped some macro params in parentheses for alloca wrappers.
Thansk, Suzuki Masahiro.
-rw-r--r-- | include/SDL_stdinc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/SDL_stdinc.h b/include/SDL_stdinc.h index 62535629f..4fd95163c 100644 --- a/include/SDL_stdinc.h +++ b/include/SDL_stdinc.h @@ -181,10 +181,10 @@ extern DECLSPEC void SDLCALL SDL_free(void *mem); # endif #endif #ifdef HAVE_ALLOCA -#define SDL_stack_alloc(type, count) (type*)alloca(sizeof(type)*count) +#define SDL_stack_alloc(type, count) (type*)alloca(sizeof(type)*(count)) #define SDL_stack_free(data) #else -#define SDL_stack_alloc(type, count) (type*)SDL_malloc(sizeof(type)*count) +#define SDL_stack_alloc(type, count) (type*)SDL_malloc(sizeof(type)*(count)) #define SDL_stack_free(data) SDL_free(data) #endif |