diff options
Diffstat (limited to 'src/core/hle/kernel/svc.cpp')
| -rw-r--r-- | src/core/hle/kernel/svc.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp index 5ad923fe7..c6b0bb442 100644 --- a/src/core/hle/kernel/svc.cpp +++ b/src/core/hle/kernel/svc.cpp | |||
| @@ -795,8 +795,9 @@ static ResultCode SetThreadCoreMask(Handle thread_handle, u32 core, u64 mask) { | |||
| 795 | return ERR_INVALID_HANDLE; | 795 | return ERR_INVALID_HANDLE; |
| 796 | } | 796 | } |
| 797 | 797 | ||
| 798 | if (core == THREADPROCESSORID_DEFAULT) { | 798 | if (core == static_cast<u32>(THREADPROCESSORID_DEFAULT)) { |
| 799 | ASSERT(thread->owner_process->ideal_processor != THREADPROCESSORID_DEFAULT); | 799 | ASSERT(thread->owner_process->ideal_processor != |
| 800 | static_cast<u8>(THREADPROCESSORID_DEFAULT)); | ||
| 800 | // Set the target CPU to the one specified in the process' exheader. | 801 | // Set the target CPU to the one specified in the process' exheader. |
| 801 | core = thread->owner_process->ideal_processor; | 802 | core = thread->owner_process->ideal_processor; |
| 802 | mask = 1ull << core; | 803 | mask = 1ull << core; |
| @@ -811,7 +812,7 @@ static ResultCode SetThreadCoreMask(Handle thread_handle, u32 core, u64 mask) { | |||
| 811 | 812 | ||
| 812 | if (core == OnlyChangeMask) { | 813 | if (core == OnlyChangeMask) { |
| 813 | core = thread->ideal_core; | 814 | core = thread->ideal_core; |
| 814 | } else if (core >= Core::NUM_CPU_CORES && core != -1) { | 815 | } else if (core >= Core::NUM_CPU_CORES && core != static_cast<u32>(-1)) { |
| 815 | return ResultCode(ErrorModule::Kernel, ErrCodes::InvalidProcessorId); | 816 | return ResultCode(ErrorModule::Kernel, ErrCodes::InvalidProcessorId); |
| 816 | } | 817 | } |
| 817 | 818 | ||