diff options
author | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2017-02-01 13:50:04 -0500 |
---|---|---|
committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2017-02-01 13:50:04 -0500 |
commit | d4be94bae0aa7af8a20372d41a4ae95a881b783c (patch) | |
tree | 358d2ae9eff882c275ad8b8f9acc6d85d84c2bce | |
parent | 4d656383d8342601aef508bd6141b1c9632d50a0 (diff) | |
download | roux-d4be94bae0aa7af8a20372d41a4ae95a881b783c.tar.gz |
fix the same bug in varget()
-rw-r--r-- | minic/minic.y | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |