1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 18:35:20 +00:00

Merge pull request #3090 from akortunov/warnfix

Fix warning in assert - size_t can not be negative
This commit is contained in:
Bret Curtis 2021-05-16 20:25:46 +02:00 committed by GitHub
commit fef9e91510
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -240,7 +240,7 @@ int BSAFile::getIndex(const char *str) const
return -1;
size_t res = it->second;
assert(res >= 0 && res < mFiles.size());
assert(res < mFiles.size());
return static_cast<int>(res);
}