mirror of
git://c9x.me/qbe.git
synced 2026-04-05 18:09:47 +00:00
fix bug in varadd(), thanks Ed Davis
This commit is contained in:
parent
cec21e6540
commit
4d656383d8
@ -137,7 +137,8 @@ varadd(char *v, int glo, unsigned ctyp)
|
||||
}
|
||||
if (strcmp(varh[h].v, v) == 0)
|
||||
die("double definition");
|
||||
} while(++h != h0);
|
||||
h = (h+1) % NVar;
|
||||
} while(h != h0);
|
||||
die("too many variables");
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user