Fix a narrowing warning due to a type mismatch (size_t vs uint64).