diff options
| author | liamwhite <liamwhite@users.noreply.github.com> | 2023-07-26 10:33:28 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-26 10:33:28 -0400 |
| commit | a28a0c47f85da1768c1fcab73b06c8e2bee96bcd (patch) | |
| tree | ab5c72b17b15185ec40945c5ba29400569b50630 /src/core/hle/kernel/k_thread.cpp | |
| parent | a9b733893c6862124de9eac2d0226e1b3f36c637 (diff) | |
| parent | 85d77f636c7ab28ea67c4c303f5d85b063ceed73 (diff) | |
Merge pull request #10990 from comex/ubsan
Fixes and workarounds to make UBSan happier on macOS
Diffstat (limited to 'src/core/hle/kernel/k_thread.cpp')
| -rw-r--r-- | src/core/hle/kernel/k_thread.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/k_thread.cpp b/src/core/hle/kernel/k_thread.cpp index d889098893..7df8fd7f71 100644 --- a/src/core/hle/kernel/k_thread.cpp +++ b/src/core/hle/kernel/k_thread.cpp @@ -129,7 +129,7 @@ Result KThread::Initialize(KThreadFunction func, uintptr_t arg, KProcessAddress case ThreadType::User: ASSERT(((owner == nullptr) || (owner->GetCoreMask() | (1ULL << virt_core)) == owner->GetCoreMask())); - ASSERT(((owner == nullptr) || + ASSERT(((owner == nullptr) || (prio > Svc::LowestThreadPriority) || (owner->GetPriorityMask() | (1ULL << prio)) == owner->GetPriorityMask())); break; case ThreadType::Kernel: |
