From b717103fe0ea8cbdce3b64504eb455cd6b65e02f Mon Sep 17 00:00:00 2001 From: Andrei Kortunov Date: Sat, 15 May 2021 19:56:14 +0400 Subject: [PATCH] Fix warning in assert - size_t can not be negative --- components/bsa/bsa_file.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/bsa/bsa_file.cpp b/components/bsa/bsa_file.cpp index 158080ea3..3375882f5 100644 --- a/components/bsa/bsa_file.cpp +++ b/components/bsa/bsa_file.cpp @@ -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(res); }