Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
change coding style
  • Loading branch information
zhichao-li committed Jul 3, 2015
commit 6bcca5a269ea18afb912e8f609fbef6e156082e1
Original file line number Diff line number Diff line change
Expand Up @@ -543,11 +543,11 @@ case class ShiftRightUnsigned(left: Expression, right: Expression) extends Binar
if (valueLeft != null) {
val valueRight = right.eval(input)
if (valueRight != null) {
left.dataType match {
case LongType => valueLeft.asInstanceOf[Long] >>> valueRight.asInstanceOf[Int]
case IntegerType => valueLeft.asInstanceOf[Int] >>> valueRight.asInstanceOf[Int]
case ShortType => valueLeft.asInstanceOf[Short] >>> valueRight.asInstanceOf[Int]
case ByteType => valueLeft.asInstanceOf[Byte] >>> valueRight.asInstanceOf[Int]
valueLeft match {
case l: Long => l >>> valueRight.asInstanceOf[Integer]
case i: Integer => i >>> valueRight.asInstanceOf[Integer]
case s: Short => s >>> valueRight.asInstanceOf[Integer]
case b: Byte => b >>> valueRight.asInstanceOf[Integer]
}
} else {
null
Expand Down