qbe

Internal scc patchset buffer for QBE
Log | Files | Refs | README | LICENSE

commit 4d656383d8342601aef508bd6141b1c9632d50a0
parent cec21e6540ee2ddf6ad874f50ef1c69631ec37a4
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date:   Wed,  1 Feb 2017 13:46:08 -0500

fix bug in varadd(), thanks Ed Davis

Diffstat:
Mminic/minic.y | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/minic/minic.y b/minic/minic.y @@ -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"); }