diff options
author | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-05-28 17:35:40 +0200 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-12-20 15:38:38 +0100 |
commit | f94ea3f0b780e72921d6604434470bd7d31184fe (patch) | |
tree | 5f8119309917b00d1c29251a9c38475a73e6659b /src | |
parent | 906a7a7dfa38e53bfdffa2e94ddbf5eb23587592 (diff) | |
download | dotty-f94ea3f0b780e72921d6604434470bd7d31184fe.tar.gz dotty-f94ea3f0b780e72921d6604434470bd7d31184fe.tar.bz2 dotty-f94ea3f0b780e72921d6604434470bd7d31184fe.zip |
Fix reading of Longs from tasty. Fixes wrong UUID.
Diffstat (limited to 'src')
-rw-r--r-- | src/dotty/tools/dotc/core/tasty/TastyReader.scala | 2 |
1 files changed, 1 insertions, 1 deletions
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 |