Fix the type of value that is returned by bit shift expression.

Improve portability and fix wrong comment about opcode.