diff options
author | Miguel Garcia <magarcia@epfl.ch> | 2011-03-28 13:59:16 +0000 |
---|---|---|
committer | Miguel Garcia <magarcia@epfl.ch> | 2011-03-28 13:59:16 +0000 |
commit | a1fe9d33bf9f4b14562c50753931673955dcc251 (patch) | |
tree | 6e8817b7e8ef00efa7fd9d313cc3c6b2e7422a15 /src/compiler | |
parent | 1b4fc3f26ea5efbf4784e1eb6d1de38ab1d8b013 (diff) | |
download | scala-a1fe9d33bf9f4b14562c50753931673955dcc251.tar.gz scala-a1fe9d33bf9f4b14562c50753931673955dcc251.tar.bz2 scala-a1fe9d33bf9f4b14562c50753931673955dcc251.zip |
(1) The msil library can now parse modreq and m...
(1) The msil library can now parse modreq and modopt, (2) bug fix in
GenMSIL. review by rytz. Updated msil.jar coming soon.
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/backend/msil/GenMSIL.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/backend/msil/GenMSIL.scala b/src/compiler/scala/tools/nsc/backend/msil/GenMSIL.scala index 076a59ce46..b8e5c50dfd 100644 --- a/src/compiler/scala/tools/nsc/backend/msil/GenMSIL.scala +++ b/src/compiler/scala/tools/nsc/backend/msil/GenMSIL.scala @@ -848,7 +848,7 @@ abstract class GenMSIL extends SubComponent { } else if (typ == clrTypes.FLOAT) { mcode.Emit(OpCodes.Ldc_R4, value.asInstanceOf[Float]) } else if (typ == clrTypes.DOUBLE) { - mcode.Emit(OpCodes.Ldc_R4, value.asInstanceOf[Double]) + mcode.Emit(OpCodes.Ldc_R8, value.asInstanceOf[Double]) } else { /* TODO one more case is described in Partition II, 16.2: bytearray(...) */ abort("Unknown type for static literal field: " + fieldInfo) |