fixed obvious bug in JenkinsHash
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@19413 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
parent
1a1f5c65b0
commit
e91e30fa31
|
@ -46,7 +46,7 @@ object JenkinsHash {
|
|||
case x: Long => bb putLong x
|
||||
case x: Float => bb putFloat x
|
||||
case x: Double => bb putDouble x
|
||||
case x: Boolean => if (x) bb put Byte.MaxValue else Byte.MinValue
|
||||
case x: Boolean => bb.put(if (x) Byte.MaxValue else Byte.MinValue)
|
||||
case x: Char => bb putChar x
|
||||
case x: Unit =>
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue