08.07.2022, 10:52
Bit shifts operate on int32 (signed) values. You can use multiplication instead of bit shift:
Code:
valH = 0xFF00
valL = 0
val = valH * 0x10000 + valL