diff options
-rw-r--r-- | src/compiler/scala/tools/nsc/util/CharArrayReader.scala | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/util/CharArrayReader.scala b/src/compiler/scala/tools/nsc/util/CharArrayReader.scala index 7cd72be464..ba67c6e3ea 100644 --- a/src/compiler/scala/tools/nsc/util/CharArrayReader.scala +++ b/src/compiler/scala/tools/nsc/util/CharArrayReader.scala @@ -53,8 +53,11 @@ class CharArrayReader(buf: Array[Char], start: Int, /* startline: Int, startcol: def next: Char = { //cline = nextline //ccol = nextcol - if(!hasNext) - return SU // there is an endless stream of SU's at the end + if(!hasNext) { + // there is an endless stream of SU's at the end + ch = SU + return SU + } oldBp = bp oldCh = ch ch = buf(bp) |