Merge r2918:2919 from 1.2 branch: alloca macro params in parentheses.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 29 Nov 2006 10:34:05 +0000
changeset 2077 8bfba7ec379a
parent 2076 939420dee849
child 2078 f932ac47a331
Merge r2918:2919 from 1.2 branch: alloca macro params in parentheses.
include/SDL_stdinc.h
--- 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