Skip to content

Commit

Permalink
change coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
zhichao-li committed Jul 3, 2015
1 parent 3e9f5ae commit 6bcca5a
Showing 1 changed file with 5 additions and 5 deletions.
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

0 comments on commit 6bcca5a

Please sign in to comment.