From 5a523ae98c3330e3f5e16cf9eec3ed37db2540f3 Mon Sep 17 00:00:00 2001 From: Brandon Date: Sun, 24 May 2026 11:47:52 -0400 Subject: [PATCH] Fix MSVC v145 internal compiler error in descriptor::operator<=> --- core/src/command_manager.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/src/command_manager.cpp b/core/src/command_manager.cpp index 2149a10..9177a92 100644 --- a/core/src/command_manager.cpp +++ b/core/src/command_manager.cpp @@ -676,9 +676,10 @@ bool windower::command_manager::descriptor::operator==( std::strong_ordering windower::command_manager::descriptor::operator<=>( descriptor const& other) const noexcept { - auto const result = command.compare(other.command); - return result != 0 ? result <=> 0 - : component.compare(other.component) <=> 0; + if (auto const result = command.compare(other.command); result != 0) + return result <=> 0; + + return component.compare(other.component) <=> 0; } windower::command_manager::name_view::name_view(