Use wider type for overflow check on LLP64 platforms like Win64, found by clang-cl...