diff options
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/color.cpp | 4 | ||||
-rw-r--r-- | src/util/color.hpp | 4 | ||||
-rw-r--r-- | src/util/hash_impl.hpp | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/util/color.cpp b/src/util/color.cpp index 8ec3ad4..4d50cf5 100644 --- a/src/util/color.cpp +++ b/src/util/color.cpp @@ -2,13 +2,13 @@ #include <fmt/color.h> -auto get_foreground_esc_seq(const uint32_t &color) noexcept -> std::string +auto get_foreground_esc_seq(const std::uint32_t &color) noexcept -> std::string { return { fmt::detail::make_foreground_color<char>(fmt::detail::color_type(color)).begin()}; } -auto get_background_esc_seq(const uint32_t &color) noexcept -> std::string +auto get_background_esc_seq(const std::uint32_t &color) noexcept -> std::string { return { fmt::detail::make_background_color<char>(fmt::detail::color_type(color)).begin()}; diff --git a/src/util/color.hpp b/src/util/color.hpp index f7c38d2..2bb147c 100644 --- a/src/util/color.hpp +++ b/src/util/color.hpp @@ -5,6 +5,6 @@ constexpr fmt::string_view RESET_ALL_MODES = "{esc}[0m"; -auto get_foreground_esc_seq(const uint32_t &color) noexcept -> std::string; +auto get_foreground_esc_seq(const std::uint32_t &color) noexcept -> std::string; -auto get_background_esc_seq(const uint32_t &color) noexcept -> std::string; +auto get_background_esc_seq(const std::uint32_t &color) noexcept -> std::string; diff --git a/src/util/hash_impl.hpp b/src/util/hash_impl.hpp index 146cfa0..ea9e7d1 100644 --- a/src/util/hash_impl.hpp +++ b/src/util/hash_impl.hpp @@ -14,8 +14,8 @@ template <typename Value> void hash_combine(std::size_t &seed, const Value &value) noexcept { - constexpr uint32_t shift_left = 6; - constexpr uint32_t shift_right = 2; + constexpr std::uint32_t shift_left = 6; + constexpr std::uint32_t shift_right = 2; seed ^= std::hash<Value>()(value) + GOLDEN_RATIO + (seed << shift_left) + (seed >> shift_right); |