Codechange: Address some MSVC compiler warnings

This commit is contained in:
Niels Martin Hansen
2018-06-10 15:36:55 +02:00
committed by Michael Lutz
parent f5f2125238
commit 836d25e738
3 changed files with 7 additions and 7 deletions

View File

@@ -4741,7 +4741,7 @@ static void NewSpriteGroup(ByteReader *buf)
}
}
group->num_ranges = optimised.size();
group->num_ranges = (uint)optimised.size(); // cast is safe, there should never be 2**31 elements here
if (group->num_ranges > 0) {
group->ranges = MallocT<DeterministicSpriteGroupRange>(group->num_ranges);
MemCpyT(group->ranges, &optimised.front(), group->num_ranges);