Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Wrapped some macro params in parentheses for alloca wrappers.
  Thansk, Suzuki Masahiro.
  • Loading branch information
icculus committed Nov 29, 2006
1 parent b152671 commit a9a1bc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/SDL_stdinc.h
Expand Up @@ -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

Expand Down

0 comments on commit a9a1bc9

Please sign in to comment.