Parenthesize macro expression - caught by a clang warning on its usage
[charm.git] / tests / ampi / stacksize / test.c
index e0ac09bbce3823e15b0cff6fec5e5685edd81c30..a5518d407c219d170dae697b803633f2ab0abd6a 100644 (file)
@@ -22,7 +22,7 @@ Orion Sky Lawlor, olawlor@acm.org, 2003/8/25
 */
 int testStack(int nKB,int useKB) {
        int i;
-#define buf1KB 1024-sizeof(i)
+#define buf1KB (1024-sizeof(i))
        char buf[buf1KB];
        for (i=0;i<buf1KB;i++)
                buf[i]=0;