From 5a8c6df6334ad60773bc71216fc72f55e30a49ec Mon Sep 17 00:00:00 2001 From: Mads Buvik Sandvei Date: Mon, 22 May 2023 20:28:09 +0200 Subject: [PATCH] clang'd --- components/esm3/loadmgef.cpp | 6 +++--- components/esm3/loadmgef.hpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/esm3/loadmgef.cpp b/components/esm3/loadmgef.cpp index 79419a46e7..3a12c69ea1 100644 --- a/components/esm3/loadmgef.cpp +++ b/components/esm3/loadmgef.cpp @@ -658,7 +658,7 @@ namespace ESM const std::array& strings) { std::map map; - for (int i = 0; i < strings.size(); i++) + for (int i = 0; i < (int)strings.size(); i++) map[strings[i]] = i; return map; @@ -731,7 +731,7 @@ namespace ESM const std::string& MagicEffect::effectIdToGmstString(int effectID) { - if (effectID >= sGmstEffectIds.size() || effectID < 0) + if (effectID >= (int)sGmstEffectIds.size() || effectID < 0) throw std::runtime_error(std::string("Unimplemented effect ID ") + std::to_string(effectID)); return sGmstEffectIds[effectID]; @@ -739,7 +739,7 @@ namespace ESM const std::string& MagicEffect::effectIdToName(int effectID) { - if (effectID >= sEffectNames.size() || effectID < 0) + if (effectID >= (int)sEffectNames.size() || effectID < 0) throw std::runtime_error(std::string("Unimplemented effect ID ") + std::to_string(effectID)); return sEffectNames[effectID]; diff --git a/components/esm3/loadmgef.hpp b/components/esm3/loadmgef.hpp index 56db4cf5c7..eead3a7015 100644 --- a/components/esm3/loadmgef.hpp +++ b/components/esm3/loadmgef.hpp @@ -1,8 +1,8 @@ #ifndef OPENMW_ESM_MGEF_H #define OPENMW_ESM_MGEF_H -#include #include +#include #include #include