Skip to content

Commit

Permalink
Fix infinite loop with nim check (#9448)
Browse files Browse the repository at this point in the history
  • Loading branch information
GULPF authored and Araq committed Oct 22, 2018
1 parent b613092 commit 16c3d43
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compiler/lexer.nim
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,8 @@ proc handleHexChar(L: var TLexer, xi: var int) =
else:
lexMessage(L, errGenerated,
"expected a hex digit, but found: " & L.buf[L.bufpos])
# Need to progress for `nim check`
inc(L.bufpos)

proc handleDecChars(L: var TLexer, xi: var int) =
while L.buf[L.bufpos] in {'0'..'9'}:
Expand Down

0 comments on commit 16c3d43

Please sign in to comment.