Fix potentially problematic data input and types with respect to x64 architecture.