Fixes a warning about "conversion from '__int64' to 'int'" on MSVC