diff options
author | data-man <datamanrb@gmail.com> | 2018-05-21 23:41:32 +0300 |
---|---|---|
committer | data-man <datamanrb@gmail.com> | 2018-05-21 23:41:32 +0300 |
commit | a39b989ce238546eca64e9c37734bc48f61e280c (patch) | |
tree | 6654454f2b1989f66552c5fc0c18857b3cc1414a /compiler | |
parent | dc809bd485ae9a104666a4ee4a3728eab9e2b39f (diff) | |
download | Nim-a39b989ce238546eca64e9c37734bc48f61e280c.tar.gz |
fixes #7855
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/filter_tmpl.nim | 2 |
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) |