summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZephyron <zephyron@citron-emu.org>2025-02-02 12:06:07 +1000
committerZephyron <zephyron@citron-emu.org>2025-02-02 12:06:07 +1000
commita1cbcee7ab43f02750d95ef4285ff10c011e51ee (patch)
tree69fd262856f8fd7b2bc82ede6210a4f636130f70
parent19ce9d695ef0fbc7fca77f3f738aae0c2b5b70c6 (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.
-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;
}