Mercurial > sdl-ios-xcode
changeset 2077:8bfba7ec379a
Merge r2918:2919 from 1.2 branch: alloca macro params in parentheses.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Wed, 29 Nov 2006 10:34:05 +0000 |
parents | 939420dee849 |
children | f932ac47a331 |
files | include/SDL_stdinc.h |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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