diff options
author | Seth Tisue <seth@tisue.net> | 2017-02-16 13:23:08 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-16 13:23:08 -0800 |
commit | 955b779b63d16ab3d2d24b454374c55e9d06c228 (patch) | |
tree | 54d5c176ffa375debb265b0784ea9c298c53081a /src/compiler/scala/tools/nsc/ast/parser/Parsers.scala | |
parent | 7b4567627c2b308866251b88aee3c2e6c72941f1 (diff) | |
parent | a262aaba15effce48fdba95910bef367f89cafca (diff) | |
download | scala-955b779b63d16ab3d2d24b454374c55e9d06c228.tar.gz scala-955b779b63d16ab3d2d24b454374c55e9d06c228.tar.bz2 scala-955b779b63d16ab3d2d24b454374c55e9d06c228.zip |
Merge pull request #5648 from som-snytt/issue/10148
SI-10148 Follow Java for float literals
Diffstat (limited to 'src/compiler/scala/tools/nsc/ast/parser/Parsers.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/ast/parser/Parsers.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala index c35c0a1019..0cdba861a5 100644 --- a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala +++ b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala @@ -1263,8 +1263,8 @@ self => case CHARLIT => in.charVal case INTLIT => in.intVal(isNegated).toInt case LONGLIT => in.intVal(isNegated) - case FLOATLIT => in.floatVal(isNegated).toFloat - case DOUBLELIT => in.floatVal(isNegated) + case FLOATLIT => in.floatVal(isNegated) + case DOUBLELIT => in.doubleVal(isNegated) case STRINGLIT | STRINGPART => in.strVal.intern() case TRUE => true case FALSE => false |