diff options
author | Andrew Kaster <akaster@serenityos.org> | 2021-10-30 15:57:08 -0600 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-11-14 22:52:35 +0100 |
commit | 07f4e91b94c5529e7056cd03a5eb89fe11266e81 (patch) | |
tree | 2b36efea1df5966e1ba59ebfedda02c84fdf3457 /AK | |
parent | 7e2ee2e725286e5c34a88500e9b2203c37fd939c (diff) | |
download | serenity-07f4e91b94c5529e7056cd03a5eb89fe11266e81.zip |
AK: Use proper type for bool NumericLimits::min and max specialization
We had these declared as returning char, which looks like a copy paste
error. Found by clang-tidy.
Diffstat (limited to 'AK')
-rw-r--r-- | AK/NumericLimits.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/AK/NumericLimits.h b/AK/NumericLimits.h index 66eb28f8ca..69d5080d6a 100644 --- a/AK/NumericLimits.h +++ b/AK/NumericLimits.h @@ -16,8 +16,8 @@ struct NumericLimits { template<> struct NumericLimits<bool> { - static constexpr char min() { return false; } - static constexpr char max() { return true; } + static constexpr bool min() { return false; } + static constexpr bool max() { return true; } static constexpr bool is_signed() { return false; } }; |