summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-02-25 15:53:18 +0100
committerLioncash <mathew1800@gmail.com>2019-02-25 15:53:21 +0100
commit0220862ba576851e8140516d2c34a5f8540e64f2 (patch)
tree77317aa5cf45917f41dcf9a4137d1f99e56fd363
parentMerge pull request #2118 from FernandoS27/ipa-improve (diff)
downloadyuzu-0220862ba576851e8140516d2c34a5f8540e64f2.tar
yuzu-0220862ba576851e8140516d2c34a5f8540e64f2.tar.gz
yuzu-0220862ba576851e8140516d2c34a5f8540e64f2.tar.bz2
yuzu-0220862ba576851e8140516d2c34a5f8540e64f2.tar.lz
yuzu-0220862ba576851e8140516d2c34a5f8540e64f2.tar.xz
yuzu-0220862ba576851e8140516d2c34a5f8540e64f2.tar.zst
yuzu-0220862ba576851e8140516d2c34a5f8540e64f2.zip
-rw-r--r--src/core/hle/kernel/handle_table.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/handle_table.cpp b/src/core/hle/kernel/handle_table.cpp
index c8acde5b1..a30038dca 100644
--- a/src/core/hle/kernel/handle_table.cpp
+++ b/src/core/hle/kernel/handle_table.cpp
@@ -14,11 +14,11 @@
namespace Kernel {
namespace {
constexpr u16 GetSlot(Handle handle) {
- return handle >> 15;
+ return static_cast<u16>(handle >> 15);
}
constexpr u16 GetGeneration(Handle handle) {
- return handle & 0x7FFF;
+ return static_cast<u16>(handle & 0x7FFF);
}
} // Anonymous namespace