From d4be94bae0aa7af8a20372d41a4ae95a881b783c Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Wed, 1 Feb 2017 13:50:04 -0500 Subject: fix the same bug in varget() --- minic/minic.y | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'minic/minic.y') diff --git a/minic/minic.y b/minic/minic.y index a466c99..6b4150d 100644 --- 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; } -- cgit 1.4.1