From 26586363772da9fca794fdddf23feeb9a57be3ae Mon Sep 17 00:00:00 2001 From: Kyle Sanderson Date: Mon, 9 Oct 2017 13:00:52 -0700 Subject: [PATCH] Fix unsigned compiler warning. --- extensions/cstrike/util_cstrike.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/cstrike/util_cstrike.cpp b/extensions/cstrike/util_cstrike.cpp index bcab0d80..722e7c5c 100644 --- a/extensions/cstrike/util_cstrike.cpp +++ b/extensions/cstrike/util_cstrike.cpp @@ -479,7 +479,7 @@ const char *GetTranslatedWeaponAlias(const char *weapon) "nvgs", "nightvision" }; - for (int i = 0; i < SM_ARRAYSIZE(szAliases) / 2; i++) + for (size_t i = 0; i < SM_ARRAYSIZE(szAliases) / 2; i++) { if (Q_stristr(GetWeaponNameFromClassname(weapon), szAliases[i * 2]) != 0) return szAliases[i * 2 + 1];