Follow-up to 44c33fda3614d588e6bf6cee1cf884e98f1531f0

Corrected some leftover 32bit typecasts. Special thanks to Ind.

Signed-off-by: Haru <haru@dotalux.com>