summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/svc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hle/kernel/svc.cpp')
-rw-r--r--src/core/hle/kernel/svc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp
index 097416e9e..69ba7b777 100644
--- a/src/core/hle/kernel/svc.cpp
+++ b/src/core/hle/kernel/svc.cpp
@@ -749,7 +749,7 @@ static ResultCode SetThreadCoreMask(Handle thread_handle, u32 core, u64 mask) {
749 ASSERT(thread->owner_process->ideal_processor != THREADPROCESSORID_DEFAULT); 749 ASSERT(thread->owner_process->ideal_processor != THREADPROCESSORID_DEFAULT);
750 // Set the target CPU to the one specified in the process' exheader. 750 // Set the target CPU to the one specified in the process' exheader.
751 core = thread->owner_process->ideal_processor; 751 core = thread->owner_process->ideal_processor;
752 mask = 1 << core; 752 mask = 1ull << core;
753 } 753 }
754 754
755 if (mask == 0) { 755 if (mask == 0) {
@@ -766,7 +766,7 @@ static ResultCode SetThreadCoreMask(Handle thread_handle, u32 core, u64 mask) {
766 } 766 }
767 767
768 // Error out if the input core isn't enabled in the input mask. 768 // Error out if the input core isn't enabled in the input mask.
769 if (core < Core::NUM_CPU_CORES && (mask & (1 << core)) == 0) { 769 if (core < Core::NUM_CPU_CORES && (mask & (1ull << core)) == 0) {
770 return ResultCode(ErrorModule::Kernel, ErrCodes::InvalidCombination); 770 return ResultCode(ErrorModule::Kernel, ErrCodes::InvalidCombination);
771 } 771 }
772 772