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.
Merge pull request #1 from pqqp/tmp

Fix Keil warning: #61-D