mirror of
git://c9x.me/qbe.git
synced 2026-04-05 18:09:47 +00:00
dirty fix bogus bsiter()
This commit is contained in:
parent
06c2e75a76
commit
956154e06e
@ -328,15 +328,16 @@ bsiter(BSet *bs, uint *elt)
|
||||
{
|
||||
uint i;
|
||||
|
||||
for (i = *elt; i < bsmax(bs); i++) {
|
||||
for (i=*elt;; i++) {
|
||||
while (i < bsmax(bs) && !bs->t[i/NBit])
|
||||
i = (i + NBit) & -NBit;
|
||||
if (i >= bsmax(bs))
|
||||
return 0;
|
||||
if (bshas(bs, i)) {
|
||||
*elt = i;
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Loading…
Reference in New Issue
Block a user