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:
rytz 2009-11-06 08:39:00 +00:00
parent 1a1f5c65b0
commit e91e30fa31
1 changed files with 1 additions and 1 deletions

View File

@ -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 =>
}