bug fix in constant set computations

This commit is contained in:
ceriel
1987-05-13 13:04:28 +00:00
parent e4cc45b56f
commit 6fc7d0f866
2 changed files with 12 additions and 60 deletions

View File

@@ -399,14 +399,8 @@ ChkSet(expp)
nd = expp->nd_right;
/* Now check the elements given, and try to compute a constant set.
First allocate room for the set, but only if it is'nt empty.
First allocate room for the set.
*/
if (! nd) {
/* The resulting set IS empty, so we just return
*/
expp->nd_set = 0;
return 1;
}
size = tp->tp_size * (sizeof(arith) / word_size);
expp->nd_set = (arith *) Malloc(size);
clear((char *) (expp->nd_set) , size);