From cd117a5476fd8d34f117263e18e694c094f73b23 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Tue, 28 Dec 2004 12:21:36 +0000 Subject: [PATCH 1/1] made allocation C-like [r4767] --- ir/adt/set.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ir/adt/set.c b/ir/adt/set.c index 55aafc417..9b2e031f6 100644 --- a/ir/adt/set.c +++ b/ir/adt/set.c @@ -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; -- 2.20.1