summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
authorIulian Dragos <jaguarul@gmail.com>2006-06-06 08:19:16 +0000
committerIulian Dragos <jaguarul@gmail.com>2006-06-06 08:19:16 +0000
commit31adfc6cf4b34273a4283765dd1f865670bf9c10 (patch)
tree805813c9ccd82541776e82a47f406514f72ab3f9 /src/compiler
parent69584d1e2ff893e0858a32c74365af971fb7b4f6 (diff)
downloadscala-31adfc6cf4b34273a4283765dd1f865670bf9c10.tar.gz
scala-31adfc6cf4b34273a4283765dd1f865670bf9c10.tar.bz2
scala-31adfc6cf4b34273a4283765dd1f865670bf9c10.zip
Fixed maxType for Long and Float
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/scala/tools/nsc/backend/icode/TypeKinds.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/backend/icode/TypeKinds.scala b/src/compiler/scala/tools/nsc/backend/icode/TypeKinds.scala
index c814fcc865..1fc1d0b935 100644
--- a/src/compiler/scala/tools/nsc/backend/icode/TypeKinds.scala
+++ b/src/compiler/scala/tools/nsc/backend/icode/TypeKinds.scala
@@ -186,7 +186,7 @@ trait TypeKinds requires ICodes {
/** A 4-byte floating point number */
case object FLOAT extends TypeKind {
override def maxType(other: TypeKind): TypeKind = other match {
- case BYTE | SHORT | CHAR | INT | FLOAT => FLOAT;
+ case BYTE | SHORT | CHAR | INT | LONG | FLOAT => FLOAT;
case DOUBLE => DOUBLE;
case _ => abort("Uncomparbale type kinds: FLOAT with " + other);
}