include/SDL_stdinc.h
branchSDL-1.2
changeset 3900 ce3a2bd11305
parent 1870 39a4f91b164a
child 3918 f16c15f3bc2b
     1.1 --- a/include/SDL_stdinc.h	Tue Nov 21 23:17:00 2006 +0000
     1.2 +++ b/include/SDL_stdinc.h	Wed Nov 29 10:30:05 2006 +0000
     1.3 @@ -181,10 +181,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