summaryrefslogtreecommitdiffstats
path: root/src/core/device_memory_manager.inc
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2024-01-07 04:50:06 +0100
committerLiam <byteslice@airmail.cc>2024-01-19 03:12:30 +0100
commit067284733075fb0604dbcdc6238d23cfa27c5355 (patch)
tree3f554af90fd6e120b156f037485641c620829a46 /src/core/device_memory_manager.inc
parentSMMU: Fix 8Gb layout. (diff)
downloadyuzu-067284733075fb0604dbcdc6238d23cfa27c5355.tar
yuzu-067284733075fb0604dbcdc6238d23cfa27c5355.tar.gz
yuzu-067284733075fb0604dbcdc6238d23cfa27c5355.tar.bz2
yuzu-067284733075fb0604dbcdc6238d23cfa27c5355.tar.lz
yuzu-067284733075fb0604dbcdc6238d23cfa27c5355.tar.xz
yuzu-067284733075fb0604dbcdc6238d23cfa27c5355.tar.zst
yuzu-067284733075fb0604dbcdc6238d23cfa27c5355.zip
Diffstat (limited to 'src/core/device_memory_manager.inc')
-rw-r--r--src/core/device_memory_manager.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/device_memory_manager.inc b/src/core/device_memory_manager.inc
index 5241293b6..d7b4abacc 100644
--- a/src/core/device_memory_manager.inc
+++ b/src/core/device_memory_manager.inc
@@ -301,7 +301,7 @@ template <typename Traits>
u8* DeviceMemoryManager<Traits>::GetSpan(const DAddr src_addr, const std::size_t size) {
size_t page_index = src_addr >> page_bits;
size_t subbits = src_addr & page_mask;
- if ((continuity_tracker[page_index] << page_bits) >= size + subbits) {
+ if ((static_cast<size_t>(continuity_tracker[page_index]) << page_bits) >= size + subbits) {
return GetPointer<u8>(src_addr);
}
return nullptr;
@@ -311,7 +311,7 @@ template <typename Traits>
const u8* DeviceMemoryManager<Traits>::GetSpan(const DAddr src_addr, const std::size_t size) const {
size_t page_index = src_addr >> page_bits;
size_t subbits = src_addr & page_mask;
- if ((continuity_tracker[page_index] << page_bits) >= size + subbits) {
+ if ((static_cast<size_t>(continuity_tracker[page_index]) << page_bits) >= size + subbits) {
return GetPointer<u8>(src_addr);
}
return nullptr;