cardinality of sets was wrong!

This commit is contained in:
ceriel 1987-02-18 10:47:55 +00:00
parent c3ae096e67
commit 3e3ebc6b8b

View file

@ -57,7 +57,7 @@ card(sp) register short *sp; {
register sum,i; register sum,i;
sum=0; sum=0;
for(i=0;i<8*SETSIZE;i++) for(i=0;i<8*sizeof(short)*SETSIZE;i++)
if (BIT(sp,i)) if (BIT(sp,i))
sum++; sum++;
return(sum); return(sum);