summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/process_capability.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-02-25 16:13:52 +0100
committerLioncash <mathew1800@gmail.com>2019-02-25 17:12:32 +0100
commit5167d1577d6b4074f46ad90864d6e0d6119089a3 (patch)
tree8debfe33cc6f0abefb1c5dbb8ae6c01bf9b0e932 /src/core/hle/kernel/process_capability.cpp
parentkernel/handle-table: In-class initialize data members (diff)
downloadyuzu-5167d1577d6b4074f46ad90864d6e0d6119089a3.tar
yuzu-5167d1577d6b4074f46ad90864d6e0d6119089a3.tar.gz
yuzu-5167d1577d6b4074f46ad90864d6e0d6119089a3.tar.bz2
yuzu-5167d1577d6b4074f46ad90864d6e0d6119089a3.tar.lz
yuzu-5167d1577d6b4074f46ad90864d6e0d6119089a3.tar.xz
yuzu-5167d1577d6b4074f46ad90864d6e0d6119089a3.tar.zst
yuzu-5167d1577d6b4074f46ad90864d6e0d6119089a3.zip
Diffstat (limited to 'src/core/hle/kernel/process_capability.cpp')
-rw-r--r--src/core/hle/kernel/process_capability.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/process_capability.cpp b/src/core/hle/kernel/process_capability.cpp
index 3a2164b25..583e35b79 100644
--- a/src/core/hle/kernel/process_capability.cpp
+++ b/src/core/hle/kernel/process_capability.cpp
@@ -96,7 +96,7 @@ void ProcessCapabilities::InitializeForMetadatalessProcess() {
interrupt_capabilities.set();
// Allow using the maximum possible amount of handles
- handle_table_size = static_cast<u32>(HandleTable::MAX_COUNT);
+ handle_table_size = static_cast<s32>(HandleTable::MAX_COUNT);
// Allow all debugging capabilities.
is_debuggable = true;
@@ -337,7 +337,7 @@ ResultCode ProcessCapabilities::HandleHandleTableFlags(u32 flags) {
return ERR_RESERVED_VALUE;
}
- handle_table_size = (flags >> 16) & 0x3FF;
+ handle_table_size = static_cast<s32>((flags >> 16) & 0x3FF);
return RESULT_SUCCESS;
}