# HG changeset patch # User Ryan C. Gordon # Date 1164796205 0 # Node ID ce3a2bd11305156829c1caaaa1f436f9ce498146 # Parent 081aecdb09111d426d0c92754aa35ce22b2f8ed0 Wrapped some macro params in parentheses for alloca wrappers. Thansk, Suzuki Masahiro. diff -r 081aecdb0911 -r ce3a2bd11305 include/SDL_stdinc.h --- 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