# HG changeset patch # User Ryan C. Gordon # Date 1164796445 0 # Node ID 8bfba7ec379afffd5ad474e7c0b0349f4d8cac99 # Parent 939420dee8496bfb98df19467a89a56e76636370 Merge r2918:2919 from 1.2 branch: alloca macro params in parentheses. diff -r 939420dee849 -r 8bfba7ec379a include/SDL_stdinc.h --- a/include/SDL_stdinc.h Wed Nov 29 10:26:32 2006 +0000 +++ b/include/SDL_stdinc.h Wed Nov 29 10:34:05 2006 +0000 @@ -223,10 +223,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