qbe

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

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

fix the same bug in varget()

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

diff --git a/minic/minic.y b/minic/minic.y @@ -162,7 +162,8 @@ varget(char *v) s.ctyp = varh[h].ctyp; return &s; } - } while (++h != h0 && varh[h].v[0] != 0); + h = (h+1) % NVar; + } while (h != h0 && varh[h].v[0] != 0); return 0; }