Mercurial > sdl-ios-xcode
changeset 3900:ce3a2bd11305 SDL-1.2
Wrapped some macro params in parentheses for alloca wrappers.
Thansk, Suzuki Masahiro.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Wed, 29 Nov 2006 10:30:05 +0000 |
parents | 081aecdb0911 |
children | 3a7248359cdd |
files | include/SDL_stdinc.h |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/include/SDL_stdinc.h Tue Nov 21 23:17:00 2006 +0000 +++ b/include/SDL_stdinc.h Wed Nov 29 10:30:05 2006 +0000 @@ -181,10 +181,10 @@ # 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