diff options
author | Martin Odersky <odersky@gmail.com> | 2015-03-05 14:13:33 +0100 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-03-18 11:14:15 +0100 |
commit | cf79474621e2272e3cdc1c670a39bb22232f90cc (patch) | |
tree | 7c398b7bbb911c73b7e6aeb52a7ef28cd7dd2773 /src/dotty/tools/dotc/core/pickling/TastyReader.scala | |
parent | 321563940dee1716c19600efd57acb9ed83a7687 (diff) | |
download | dotty-cf79474621e2272e3cdc1c670a39bb22232f90cc.tar.gz dotty-cf79474621e2272e3cdc1c670a39bb22232f90cc.tar.bz2 dotty-cf79474621e2272e3cdc1c670a39bb22232f90cc.zip |
Fix TastyReader#readLongInt
Diffstat (limited to 'src/dotty/tools/dotc/core/pickling/TastyReader.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/pickling/TastyReader.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/pickling/TastyReader.scala b/src/dotty/tools/dotc/core/pickling/TastyReader.scala index e0f3be84e..0385e9adb 100644 --- a/src/dotty/tools/dotc/core/pickling/TastyReader.scala +++ b/src/dotty/tools/dotc/core/pickling/TastyReader.scala @@ -88,7 +88,7 @@ class TastyReader(val bytes: Array[Byte], start: Int, end: Int, val base: Int = /** Read a long integer number in 2's complement big endian format, base 128. */ def readLongInt(): Long = { var b = bytes(bp) - var x = (b << 1).toByte >> 1 // sign extend with bit 6. + var x: Long = (b << 1).toByte >> 1 // sign extend with bit 6. bp += 1 while ((b & 0x80) == 0) { b = bytes(bp) |