refactor: downgrade to C++20

This commit is contained in:
Tropical
2026-04-10 17:12:35 -05:00
parent ff7baaac3b
commit b0fac9fbc6
9 changed files with 17 additions and 16 deletions

View File

@@ -140,7 +140,7 @@ void setPriorityPlatform(std::thread& threadHandle, bool isSelf,
handle = ::GetCurrentThread();
else
return;
(void)::SetThreadPriority(handle, std::to_underlying(priority));
(void)::SetThreadPriority(handle, static_cast<int>(priority));
#elif defined(__linux__)
std::int64_t tid = 0;