diff options
author | Gerke Max Preussner <github@gerke-preussner.de> | 2017-12-12 08:43:12 -0500 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-12-12 14:43:12 +0100 |
commit | d3f966922ef4ddd05c137f82e5b2329b3d5dc485 (patch) | |
tree | fada2c99cd07323348a0f9956d2a9d8e276614f8 | |
parent | 28e0bf9dcd62f387c79f767848cadd8b71d825de (diff) | |
download | Nim-d3f966922ef4ddd05c137f82e5b2329b3d5dc485.tar.gz |
Fixed koch warning when installing Nim. (#6898)
-rw-r--r-- | compiler/dfa.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/dfa.nim b/compiler/dfa.nim index 22a110a1f..fbf71d95c 100644 --- a/compiler/dfa.nim +++ b/compiler/dfa.nim @@ -382,9 +382,9 @@ proc dfa(code: seq[Instr]) = else: pc2 = pc + 1 if code[pc].kind == fork: - let l = pc + code[pc].dest - if sid >= 0 and s[l].missingOrExcl(sid): - w.add l + let lidx = pc + code[pc].dest + if sid >= 0 and s[lidx].missingOrExcl(sid): + w.add lidx if sid >= 0 and s[pc2].missingOrExcl(sid): pc = pc2 |