made allocation C-like
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Tue, 28 Dec 2004 12:21:36 +0000 (12:21 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Tue, 28 Dec 2004 12:21:36 +0000 (12:21 +0000)
[r4767]

ir/adt/set.c

index 55aafc4..9b2e031 100644 (file)
@@ -179,7 +179,7 @@ SET *
 (PMANGLE(new)) (MANGLEP(cmp_fun) cmp, int nslots)
 {
   int i;
-  SET *table = xmalloc (sizeof (SET));
+  SET *table = xmalloc(sizeof(*table));
 
   if (nslots > SEGMENT_SIZE * DIRECTORY_SIZE)
     nslots = DIRECTORY_SIZE;