summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/ConstantFolder.scala
diff options
context:
space:
mode:
authorSeth Tisue <seth@tisue.net>2016-10-24 19:25:17 -0700
committerGitHub <noreply@github.com>2016-10-24 19:25:17 -0700
commiteff0aabb7824513498a4081072845001dbe4897f (patch)
tree79e2dade4a231364d2aedc8e8f8f0d0b034a87c4 /src/compiler/scala/tools/nsc/typechecker/ConstantFolder.scala
parent01b76a26ef4285aa4dfc9e1fc00c4886538e8b7d (diff)
parente0a8ffe88740995150fa7ca58797a4cceed3169f (diff)
downloadscala-eff0aabb7824513498a4081072845001dbe4897f.tar.gz
scala-eff0aabb7824513498a4081072845001dbe4897f.tar.bz2
scala-eff0aabb7824513498a4081072845001dbe4897f.zip
Merge pull request #5383 from SethTisue/post-rc1-cleanups
assorted cleanups
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/ConstantFolder.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/ConstantFolder.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/ConstantFolder.scala b/src/compiler/scala/tools/nsc/typechecker/ConstantFolder.scala
index 2cd4785fbf..8b62409076 100644
--- a/src/compiler/scala/tools/nsc/typechecker/ConstantFolder.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/ConstantFolder.scala
@@ -103,13 +103,13 @@ abstract class ConstantFolder {
case nme.XOR => Constant(x.longValue ^ y.longValue)
case nme.AND => Constant(x.longValue & y.longValue)
case nme.LSL if x.tag <= IntTag
- => Constant(x.intValue << y.longValue.toInt) // TODO: remove .toInt once starr includes the fix for SI-9516 (2.12.0-M5)
+ => Constant(x.intValue << y.longValue)
case nme.LSL => Constant(x.longValue << y.longValue)
case nme.LSR if x.tag <= IntTag
- => Constant(x.intValue >>> y.longValue.toInt) // TODO: remove .toInt once starr includes the fix for SI-9516 (2.12.0-M5)
+ => Constant(x.intValue >>> y.longValue)
case nme.LSR => Constant(x.longValue >>> y.longValue)
case nme.ASR if x.tag <= IntTag
- => Constant(x.intValue >> y.longValue.toInt) // TODO: remove .toInt once starr includes the fix for SI-9516 (2.12.0-M5)
+ => Constant(x.intValue >> y.longValue)
case nme.ASR => Constant(x.longValue >> y.longValue)
case nme.EQ => Constant(x.longValue == y.longValue)
case nme.NE => Constant(x.longValue != y.longValue)