Silence some PVS warnings

This commit is contained in:
baldurk
2020-08-20 16:11:05 +01:00
parent b5de095f53
commit fa24dc8872
8 changed files with 18 additions and 15 deletions
+1 -1
View File
@@ -1189,7 +1189,7 @@ dds_data load_dds_from_file(StreamReader *reader)
}
if(uint64_t(ret.slices) > fileSize || uint64_t(ret.mips) > fileSize ||
uint64_t(ret.slices * ret.mips) > fileSize)
uint64_t(ret.slices) * ret.mips > fileSize)
{
RDCERR("Invalid slice count %u or mip count %u", ret.slices, ret.mips);
return ret;