summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-10-11 21:08:00 +0200
committerLiam <byteslice@airmail.cc>2023-10-20 08:34:15 +0200
commitd8507332c116f3b5d39a8ac6ad5fd66a6a2914f8 (patch)
tree10c9958742531f3b5b62d210fcb8568cde72bd13 /src/core/hle
parentcodespell: allow 'VAs' (diff)
downloadyuzu-d8507332c116f3b5d39a8ac6ad5fd66a6a2914f8.tar
yuzu-d8507332c116f3b5d39a8ac6ad5fd66a6a2914f8.tar.gz
yuzu-d8507332c116f3b5d39a8ac6ad5fd66a6a2914f8.tar.bz2
yuzu-d8507332c116f3b5d39a8ac6ad5fd66a6a2914f8.tar.lz
yuzu-d8507332c116f3b5d39a8ac6ad5fd66a6a2914f8.tar.xz
yuzu-d8507332c116f3b5d39a8ac6ad5fd66a6a2914f8.tar.zst
yuzu-d8507332c116f3b5d39a8ac6ad5fd66a6a2914f8.zip
Diffstat (limited to 'src/core/hle')
-rw-r--r--src/core/hle/kernel/kernel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp
index 6f19860a1..24433d32b 100644
--- a/src/core/hle/kernel/kernel.cpp
+++ b/src/core/hle/kernel/kernel.cpp
@@ -636,7 +636,7 @@ struct KernelCore::Impl {
constexpr size_t SecureUnknownRegionSize = 0;
const size_t secure_unknown_size = SecureUnknownRegionSize;
const auto secure_unknown_end_phys_addr = secure_applet_end_phys_addr + secure_unknown_size;
- if (secure_unknown_size > 0) {
+ if constexpr (SecureUnknownRegionSize > 0) {
ASSERT(memory_layout->GetPhysicalMemoryRegionTree().Insert(
GetInteger(secure_applet_end_phys_addr), secure_unknown_size,
KMemoryRegionType_DramKernelSecureUnknown));