Skip to content

Commit

Permalink
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -933,8 +933,6 @@ public RightShiftNode(RubyContext context, SourceSection sourceSection) {
super(context, sourceSection);
}

protected abstract Object executeRightShift(VirtualFrame frame, Object a, Object b);

@Specialization
public Object rightShift(VirtualFrame frame, int a, int b) {
if (b > 0) {
@@ -944,6 +942,8 @@ public Object rightShift(VirtualFrame frame, int a, int b) {
} else {
return 0;
}
} else if (b == 32) {
return 0;
} else {
return a >> b;
}
@@ -966,6 +966,8 @@ public Object rightShift(VirtualFrame frame, int a, long b) {
} else {
return 0;
}
} else if (b == 32) {
return 0;
} else {
return a >> b;
}

1 comment on commit 44bba01

@eregon
Copy link
Member

@eregon eregon commented on 44bba01 Sep 14, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Specs or this is not a fix 😄 (less MRI excludes works too)
I did it in 50492b7.

Sorry, something went wrong.

Please sign in to comment.