summaryrefslogtreecommitdiff
path: root/src/common/host_memory.cpp
diff options
context:
space:
mode:
authorZephyron <zephyron@citron-emu.org>2025-02-02 12:06:07 +1000
committerMike Lothian <mike@fireburn.co.uk>2025-05-11 14:54:45 +0100
commit2bce10f740c69c7bf843144d3328dc9537d0c2bb (patch)
tree1ebb4450d9e618bd4cdfa3f40c8554aa329f0de7 /src/common/host_memory.cpp
parent0b5a1c07b47288da6de2f5033f1f140ced43ead0 (diff)
vulkan: Fix parameter naming consistency for Android compilation
Renames 'size' parameter to 'length' in IsValidMapping() methods to avoid conflicts with Android NDK macros that define 'size'. This fixes compilation issues on Android platforms where the 'size' macro is defined.
Diffstat (limited to 'src/common/host_memory.cpp')
-rw-r--r--src/common/host_memory.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/common/host_memory.cpp b/src/common/host_memory.cpp
index 4ae22fcfb..ea1cdc612 100644
--- a/src/common/host_memory.cpp
+++ b/src/common/host_memory.cpp
@@ -200,8 +200,8 @@ public:
UNREACHABLE();
}
- bool IsValidMapping(size_t offset, size_t size) const {
- return (offset + size) <= backing_size;
+ bool IsValidMapping(size_t offset, size_t length) const {
+ return (offset + length) <= backing_size;
}
bool IsDirectMappingEnabled() const {
@@ -611,8 +611,8 @@ public:
virtual_base = nullptr;
}
- bool IsValidMapping(size_t offset, size_t size) const {
- return (offset + size) <= backing_size;
+ bool IsValidMapping(size_t offset, size_t length) const {
+ return (offset + length) <= backing_size;
}
bool IsDirectMappingEnabled() const {
@@ -692,7 +692,7 @@ public:
void EnableDirectMappedAddress() {}
- bool IsValidMapping(size_t offset, size_t size) const {
+ bool IsValidMapping(size_t offset, size_t length) const {
return false;
}