Misc
Fix potential integer overflow on 64-bit arch.