diff include/SDL_stdinc.h @ 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 6067c7f9a672
children 874162355be5
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