summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authordata-man <datamanrb@gmail.com>2018-05-21 23:41:32 +0300
committerdata-man <datamanrb@gmail.com>2018-05-21 23:41:32 +0300
commita39b989ce238546eca64e9c37734bc48f61e280c (patch)
tree6654454f2b1989f66552c5fc0c18857b3cc1414a /compiler
parentdc809bd485ae9a104666a4ee4a3728eab9e2b39f (diff)
downloadNim-a39b989ce238546eca64e9c37734bc48f61e280c.tar.gz
fixes #7855
Diffstat (limited to 'compiler')
-rw-r--r--compiler/filter_tmpl.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/filter_tmpl.nim b/compiler/filter_tmpl.nim
index f93355e6b..230c4ad32 100644
--- a/compiler/filter_tmpl.nim
+++ b/compiler/filter_tmpl.nim
@@ -65,7 +65,7 @@ proc parseLine(p: var TTmplParser) =
   var j = 0
   let hi = p.x.len - 1
 
-  if hi == 0:
+  if hi < 0:
     return
 
   while j <= hi and p.x[j] == ' ': inc(j)