From 49e702c0c78bf616e7db117b950db7be3fd4edad Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Wed, 22 Sep 2021 08:34:31 +0200 Subject: [PATCH] hashed_string: minor changes --- src/entt/core/hashed_string.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/entt/core/hashed_string.hpp b/src/entt/core/hashed_string.hpp index 76fd20e3f..85fbce90b 100644 --- a/src/entt/core/hashed_string.hpp +++ b/src/entt/core/hashed_string.hpp @@ -244,7 +244,7 @@ template */ template [[nodiscard]] constexpr bool operator<=(const basic_hashed_string &lhs, const basic_hashed_string &rhs) ENTT_NOEXCEPT { - return lhs.value() <= rhs.value(); + return !(rhs < lhs); } /** @@ -257,7 +257,7 @@ template */ template [[nodiscard]] constexpr bool operator>(const basic_hashed_string &lhs, const basic_hashed_string &rhs) ENTT_NOEXCEPT { - return !(lhs <= rhs); + return rhs < lhs; } /**