=per #15280 Make snapshot header length field deserialize correctly

This commit is contained in:
Björn Antonsson 2014-05-26 13:55:13 +02:00
parent e282ec98c6
commit 80c68af14c
3 changed files with 99 additions and 4 deletions

View file

@ -98,5 +98,5 @@ class SnapshotSerializer(system: ExtendedActorSystem) extends Serializer {
0 to 24 by 8 foreach { shift outputStream.write(i >> shift) }
private def readInt(inputStream: InputStream) =
(0 to 24 by 8).foldLeft(0) { (id, shift) (id | (inputStream.read() >> shift)) }
(0 to 24 by 8).foldLeft(0) { (id, shift) (id | (inputStream.read() << shift)) }
}