Fixing a 64-bit conversion warning in MSVC.