From 28f8d4570d9d272468195a1c614ffd732e234595 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 25 Nov 2022 12:27:54 +0100 Subject: [PATCH] - silence compiler warning --- src/common/models/models_iqm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/models/models_iqm.cpp b/src/common/models/models_iqm.cpp index 95c2549de..9d4ab2652 100644 --- a/src/common/models/models_iqm.cpp +++ b/src/common/models/models_iqm.cpp @@ -436,7 +436,7 @@ int IQMModel::FindFrame(const char* name, bool nodefault) { // [MK] allow looking up frames by animation name plus offset (using a colon as separator) const char* colon = strrchr(name,':'); - int nlen = (colon==nullptr)?strlen(name):(colon-name); + size_t nlen = (colon==nullptr)?strlen(name):(colon-name); for (unsigned i = 0; i < Anims.Size(); i++) { if (!strnicmp(name, Anims[i].Name.GetChars(), nlen))