diff options
author | bunnei <ericbunnie@gmail.com> | 2014-04-18 03:40:42 +0200 |
---|---|---|
committer | bunnei <ericbunnie@gmail.com> | 2014-04-18 03:40:42 +0200 |
commit | 33e7d97d462b95a781a507fc9e3c59c6de063d91 (patch) | |
tree | 8681117a57a8eb1098c577d08134644828cbbc4a /src/core | |
parent | moved enums into Memory:: namespace (diff) | |
download | yuzu-33e7d97d462b95a781a507fc9e3c59c6de063d91.tar yuzu-33e7d97d462b95a781a507fc9e3c59c6de063d91.tar.gz yuzu-33e7d97d462b95a781a507fc9e3c59c6de063d91.tar.bz2 yuzu-33e7d97d462b95a781a507fc9e3c59c6de063d91.tar.lz yuzu-33e7d97d462b95a781a507fc9e3c59c6de063d91.tar.xz yuzu-33e7d97d462b95a781a507fc9e3c59c6de063d91.tar.zst yuzu-33e7d97d462b95a781a507fc9e3c59c6de063d91.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/mem_map_funcs.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/mem_map_funcs.cpp b/src/core/mem_map_funcs.cpp index 5ab1b6e92..8e97ef111 100644 --- a/src/core/mem_map_funcs.cpp +++ b/src/core/mem_map_funcs.cpp @@ -103,11 +103,11 @@ u8 *GetPointer(const u32 addr) { const u32 vaddr = _AddressPhysicalToVirtual(addr); // FCRAM - GSP heap - if ((vaddr > HEAP_GSP_VADDR) && (vaddr < HEAP_GSP_VADDR_END)) { + if ((vaddr >= HEAP_GSP_VADDR) && (vaddr < HEAP_GSP_VADDR_END)) { return g_heap_gsp + (vaddr & HEAP_GSP_MASK); // FCRAM - application heap - } else if ((vaddr > HEAP_VADDR) && (vaddr < HEAP_VADDR_END)) { + } else if ((vaddr >= HEAP_VADDR) && (vaddr < HEAP_VADDR_END)) { return g_heap + (vaddr & HEAP_MASK); } else { |