From d9c3ba03f4e846128d318bd09d94a8a900d52899 Mon Sep 17 00:00:00 2001 From: "florent.teppe" Date: Mon, 20 Sep 2021 21:01:28 +0200 Subject: [PATCH] Uses limits instead of climits --- apps/openmw/mwdialogue/keywordsearch.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/openmw/mwdialogue/keywordsearch.hpp b/apps/openmw/mwdialogue/keywordsearch.hpp index fc6f2a91e8..8ba3349bc8 100644 --- a/apps/openmw/mwdialogue/keywordsearch.hpp +++ b/apps/openmw/mwdialogue/keywordsearch.hpp @@ -1,9 +1,9 @@ #ifndef GAME_MWDIALOGUE_KEYWORDSEARCH_H #define GAME_MWDIALOGUE_KEYWORDSEARCH_H -#include -#include #include +#include +#include #include #include #include // std::reverse @@ -71,7 +71,7 @@ public: static bool isWhitespaceUTF8(const int utf8Char) { - if (utf8Char >= 0 && utf8Char <= UCHAR_MAX) + if (utf8Char >= 0 && utf8Char <= static_cast( std::numeric_limits::max())) { //That function has undefined behavior if the character doesn't fit in unsigned char return std::isspace(utf8Char);