summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/svc/svc_process_memory.cpp
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-02-22 00:58:04 +0100
committerGitHub <noreply@github.com>2023-02-22 00:58:04 +0100
commit11f6bb153251462bf55afa59ba99b98f9c9ecaa1 (patch)
tree22a1c190d8ce59d7cb7599c1a8cf6dfbdfe53eea /src/core/hle/kernel/svc/svc_process_memory.cpp
parentMerge pull request #9841 from abouvier/httplib-update (diff)
parentsvc: Fix type consistency (exposed on macOS) (diff)
downloadyuzu-11f6bb153251462bf55afa59ba99b98f9c9ecaa1.tar
yuzu-11f6bb153251462bf55afa59ba99b98f9c9ecaa1.tar.gz
yuzu-11f6bb153251462bf55afa59ba99b98f9c9ecaa1.tar.bz2
yuzu-11f6bb153251462bf55afa59ba99b98f9c9ecaa1.tar.lz
yuzu-11f6bb153251462bf55afa59ba99b98f9c9ecaa1.tar.xz
yuzu-11f6bb153251462bf55afa59ba99b98f9c9ecaa1.tar.zst
yuzu-11f6bb153251462bf55afa59ba99b98f9c9ecaa1.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/svc/svc_process_memory.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/svc/svc_process_memory.cpp b/src/core/hle/kernel/svc/svc_process_memory.cpp
index 4dfd9e5bb..8e2fb4092 100644
--- a/src/core/hle/kernel/svc/svc_process_memory.cpp
+++ b/src/core/hle/kernel/svc/svc_process_memory.cpp
@@ -37,8 +37,8 @@ Result SetProcessMemoryPermission(Core::System& system, Handle process_handle, V
R_UNLESS(Common::IsAligned(size, PageSize), ResultInvalidSize);
R_UNLESS(size > 0, ResultInvalidSize);
R_UNLESS((address < address + size), ResultInvalidCurrentMemory);
- R_UNLESS(address == static_cast<uintptr_t>(address), ResultInvalidCurrentMemory);
- R_UNLESS(size == static_cast<size_t>(size), ResultInvalidCurrentMemory);
+ R_UNLESS(address == static_cast<uint64_t>(address), ResultInvalidCurrentMemory);
+ R_UNLESS(size == static_cast<uint64_t>(size), ResultInvalidCurrentMemory);
// Validate the memory permission.
R_UNLESS(IsValidProcessMemoryPermission(perm), ResultInvalidNewMemoryPermission);