From a9670addd81d17fff8745cc931ff94fb1eb0100a Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 29 Nov 2006 10:34:05 +0000 Subject: [PATCH] Merge r2918:2919 from 1.2 branch: alloca macro params in parentheses. --- include/SDL_stdinc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/SDL_stdinc.h b/include/SDL_stdinc.h index 570dd1dba..c987d5517 100644 --- a/include/SDL_stdinc.h +++ b/include/SDL_stdinc.h @@ -223,10 +223,10 @@ char *alloca(); # 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