summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Kaster <akaster@serenityos.org>2021-10-30 15:57:08 -0600
committerAndreas Kling <kling@serenityos.org>2021-11-14 22:52:35 +0100
commit07f4e91b94c5529e7056cd03a5eb89fe11266e81 (patch)
tree2b36efea1df5966e1ba59ebfedda02c84fdf3457
parent7e2ee2e725286e5c34a88500e9b2203c37fd939c (diff)
downloadserenity-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.
-rw-r--r--AK/NumericLimits.h4
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; }
};