diff options
-rw-r--r-- | include/SDL_stdinc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/SDL_stdinc.h b/include/SDL_stdinc.h index 62535629f..4fd95163c 100644 --- a/include/SDL_stdinc.h +++ b/include/SDL_stdinc.h @@ -181,10 +181,10 @@ extern DECLSPEC void SDLCALL SDL_free(void *mem); # 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 |