include/SDL_stdinc.h
changeset 2077 8bfba7ec379a
parent 2048 6067c7f9a672
child 2111 874162355be5
     1.1 --- a/include/SDL_stdinc.h	Wed Nov 29 10:26:32 2006 +0000
     1.2 +++ b/include/SDL_stdinc.h	Wed Nov 29 10:34:05 2006 +0000
     1.3 @@ -223,10 +223,10 @@
     1.4  # endif
     1.5  #endif
     1.6  #ifdef HAVE_ALLOCA
     1.7 -#define SDL_stack_alloc(type, count)    (type*)alloca(sizeof(type)*count)
     1.8 +#define SDL_stack_alloc(type, count)    (type*)alloca(sizeof(type)*(count))
     1.9  #define SDL_stack_free(data)
    1.10  #else
    1.11 -#define SDL_stack_alloc(type, count)    (type*)SDL_malloc(sizeof(type)*count)
    1.12 +#define SDL_stack_alloc(type, count)    (type*)SDL_malloc(sizeof(type)*(count))
    1.13  #define SDL_stack_free(data)            SDL_free(data)
    1.14  #endif
    1.15