diff options
author | Paul Phillips <paulp@improving.org> | 2009-06-26 14:29:16 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2009-06-26 14:29:16 +0000 |
commit | 288a684174b4cf6bcfa786f017320125a4bcc91f (patch) | |
tree | 30393fec4004e2d0811c83f0cba30eb3bdfd200f /src | |
parent | 2f085cf0d2c4bfd22810568898394aac327a5b98 (diff) | |
download | scala-288a684174b4cf6bcfa786f017320125a4bcc91f.tar.gz scala-288a684174b4cf6bcfa786f017320125a4bcc91f.tar.bz2 scala-288a684174b4cf6bcfa786f017320125a4bcc91f.zip |
Fixed the fact that reflective calls had logica...
Fixed the fact that reflective calls had logical and arithmetic right
shift swapped. Modified test case to use a value that doesn't have
identical output for both shifts. Grumbled to self that test cases which
fail to test are markedly worse than no tests at all.
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/transform/CleanUp.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/transform/CleanUp.scala b/src/compiler/scala/tools/nsc/transform/CleanUp.scala index 6a0d0e1f8b..c1ac9e15aa 100644 --- a/src/compiler/scala/tools/nsc/transform/CleanUp.scala +++ b/src/compiler/scala/tools/nsc/transform/CleanUp.scala @@ -422,9 +422,9 @@ abstract class CleanUp extends Transform { case nme.LSL => (definitions.getMember(definitions.BoxesRunTimeClass, newTermName("shiftSignedLeft")), testForNumber) case nme.LSR => - (definitions.getMember(definitions.BoxesRunTimeClass, newTermName("shiftSignedRight")), testForNumber) - case nme.ASR => (definitions.getMember(definitions.BoxesRunTimeClass, newTermName("shiftLogicalRight")), testForNumber) + case nme.ASR => + (definitions.getMember(definitions.BoxesRunTimeClass, newTermName("shiftSignedRight")), testForNumber) case nme.EQ => (definitions.getMember(definitions.BoxesRunTimeClass, newTermName("testEqual")), testForNumberOrBoolean) case nme.NE => |