From 8800adb54f3ac279a2006ed024b40241a6f74219 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Mon, 23 Feb 2015 17:55:08 +0100 Subject: Fix implementation of readEnd --- src/dotty/tools/dotc/core/pickling/TastyReader.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dotty/tools/dotc/core/pickling/TastyReader.scala') diff --git a/src/dotty/tools/dotc/core/pickling/TastyReader.scala b/src/dotty/tools/dotc/core/pickling/TastyReader.scala index 1b3c82f79..44e62bfc5 100644 --- a/src/dotty/tools/dotc/core/pickling/TastyReader.scala +++ b/src/dotty/tools/dotc/core/pickling/TastyReader.scala @@ -115,7 +115,7 @@ class TastyReader(val bytes: Array[Byte], start: Int, end: Int, val base: Int = /** Read a length number and return the absolute end address implied by it, * given as
+ . */ - def readEnd(): Addr = Addr(readNat() + bp) + def readEnd(): Addr = addr(readNat() + bp) /** Set read position to the one pointed to by `addr` */ def skipTo(addr: Addr): Unit = -- cgit v1.2.3