Fix Keil warning: #61-D

Fix Keil warning: #61-D: integer operation result is out of range when
PinList or TPin change the most significant bit of the register.