diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2019-07-17 15:10:02 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-07-17 15:10:02 +0200 |
commit | 43940294c5ecbd8a121bd7212100482a4a46c402 (patch) | |
tree | ba2a9aec82f787937d0b72e5e86c1ef1c20a6d0f /compiler | |
parent | 44d80dd86373b9ba41051428948eae30ed97acd3 (diff) | |
download | Nim-43940294c5ecbd8a121bd7212100482a4a46c402.tar.gz |
fixes a critical 'nim secret' regression
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/llstream.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/llstream.nim b/compiler/llstream.nim index 69a6905af..9cbca4c4b 100644 --- a/compiler/llstream.nim +++ b/compiler/llstream.nim @@ -97,7 +97,7 @@ proc continueLine(line: string, inTripleString: bool): bool {.inline.} = proc countTriples(s: string): int = var i = 0 - while i < s.len: + while i+2 < s.len: if s[i] == '"' and s[i+1] == '"' and s[i+2] == '"': inc result inc i, 2 |