From 07f4e91b94c5529e7056cd03a5eb89fe11266e81 Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Sat, 30 Oct 2021 15:57:08 -0600 Subject: [PATCH] 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. --- AK/NumericLimits.h | 4 ++-- 1 file 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 { - 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; } };