Prevent any potential issues due to sign extension (which could occur on platforms where int is 16 bits).