diff --git a/include/ctre/atoms_characters.hpp b/include/ctre/atoms_characters.hpp index 349718db..d7000674 100644 --- a/include/ctre/atoms_characters.hpp +++ b/include/ctre/atoms_characters.hpp @@ -40,7 +40,7 @@ template struct character { } } } - return value == V; + return (std::make_unsigned_t)value == V; } }; @@ -79,7 +79,7 @@ template struct char_range { } } } - return (value >= A) && (value <= B); + return ((std::make_unsigned_t)value >= A) && ((std::make_unsigned_t)value <= B); } }; using word_chars = set, char_range<'a','z'>, char_range<'0','9'>, character<'_'> >;