From ff76ec5f866b5dc77bb635f2d62bec861794fb63 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Fri, 8 Mar 2024 19:18:15 -0500 Subject: type nonsense --- src/components/channellist/channellisttree.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/channellist/channellisttree.cpp b/src/components/channellist/channellisttree.cpp index c26cc24..4816b42 100644 --- a/src/components/channellist/channellisttree.cpp +++ b/src/components/channellist/channellisttree.cpp @@ -359,7 +359,7 @@ int ChannelListTree::SortFunc(const Gtk::TreeModel::iterator &a, const Gtk::Tree if (a_type == RenderType::TextChannel && b_type == RenderType::VoiceChannel) return -1; if (b_type == RenderType::TextChannel && a_type == RenderType::VoiceChannel) return 1; #endif - return static_cast(std::clamp(a_sort - b_sort, -1LL, 1LL)); + return static_cast(std::clamp(a_sort - b_sort, int64_t(-1), int64_t(1))); } void ChannelListTree::OnPanedPositionChanged() { -- cgit v1.2.3