Skip to content

Commit

Permalink
Update math.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
Davies Liu committed Jul 2, 2015
1 parent 25156b7 commit b31fc9a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ case class Hex(child: Expression) extends UnaryExpression with Serializable {
var len = 0
do {
len += 1
value(value.length - len) = Hex.hexDigits(numBuf & 0xF)
value(value.length - len) = Hex.hexDigits((numBuf & 0xF).toInt)
numBuf >>>= 4
} while (numBuf != 0)
UTF8String.fromBytes(Arrays.copyOfRange(value, value.length - len, value.length))
Expand Down

0 comments on commit b31fc9a

Please sign in to comment.