summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/svc.cpp
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-06-20 18:39:10 +0200
committerSubv <subv2112@gmail.com>2018-06-20 18:39:10 +0200
commita3d82ef5d90b02a256087edf9c0124b51b059c18 (patch)
tree859f41acecbdcfcbdf19df80903a045d6e2b0bcb /src/core/hle/kernel/svc.cpp
parentImplement GetAvailableLanguageCodes2 (#575) (diff)
downloadyuzu-a3d82ef5d90b02a256087edf9c0124b51b059c18.tar
yuzu-a3d82ef5d90b02a256087edf9c0124b51b059c18.tar.gz
yuzu-a3d82ef5d90b02a256087edf9c0124b51b059c18.tar.bz2
yuzu-a3d82ef5d90b02a256087edf9c0124b51b059c18.tar.lz
yuzu-a3d82ef5d90b02a256087edf9c0124b51b059c18.tar.xz
yuzu-a3d82ef5d90b02a256087edf9c0124b51b059c18.tar.zst
yuzu-a3d82ef5d90b02a256087edf9c0124b51b059c18.zip
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) {
ASSERT(thread->owner_process->ideal_processor != THREADPROCESSORID_DEFAULT);
// Set the target CPU to the one specified in the process' exheader.
core = thread->owner_process->ideal_processor;
- mask = 1 << core;
+ mask = 1ull << core;
}
if (mask == 0) {
@@ -766,7 +766,7 @@ static ResultCode SetThreadCoreMask(Handle thread_handle, u32 core, u64 mask) {
}
// Error out if the input core isn't enabled in the input mask.
- if (core < Core::NUM_CPU_CORES && (mask & (1 << core)) == 0) {
+ if (core < Core::NUM_CPU_CORES && (mask & (1ull << core)) == 0) {
return ResultCode(ErrorModule::Kernel, ErrCodes::InvalidCombination);
}