summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2019-07-17 15:10:02 +0200
committerAndreas Rumpf <rumpf_a@web.de>2019-07-17 15:10:02 +0200
commit43940294c5ecbd8a121bd7212100482a4a46c402 (patch)
treeba2a9aec82f787937d0b72e5e86c1ef1c20a6d0f /compiler
parent44d80dd86373b9ba41051428948eae30ed97acd3 (diff)
downloadNim-43940294c5ecbd8a121bd7212100482a4a46c402.tar.gz
fixes a critical 'nim secret' regression
Diffstat (limited to 'compiler')
-rw-r--r--compiler/llstream.nim2
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