remove bit-shift operation.

on some environment such as avr-elf, 'sizeof(int)' returns 2.
in that case, this expression is ill-formed:

    lval = (1 << 16) - 1;

because shifted value is larger than 16bit.