From f94ea3f0b780e72921d6604434470bd7d31184fe Mon Sep 17 00:00:00 2001 From: Dmitry Petrashko Date: Thu, 28 May 2015 17:35:40 +0200 Subject: Fix reading of Longs from tasty. Fixes wrong UUID. --- src/dotty/tools/dotc/core/tasty/TastyReader.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/dotty/tools/dotc/core/tasty/TastyReader.scala b/src/dotty/tools/dotc/core/tasty/TastyReader.scala index c6a222d2b..e583c4793 100644 --- a/src/dotty/tools/dotc/core/tasty/TastyReader.scala +++ b/src/dotty/tools/dotc/core/tasty/TastyReader.scala @@ -99,7 +99,7 @@ class TastyReader(val bytes: Array[Byte], start: Int, end: Int, val base: Int = /** Read an uncompressed Long stored in 8 bytes in big endian format */ def readUncompressedLong(): Long = { - var x = 0 + var x: Long = 0 for (i <- 0 to 7) x = (x << 8) | (readByte() & 0xff) x -- cgit v1.2.3