mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-15 22:54:00 +00:00
Memory: Correct GCC errors.
This commit is contained in:
parent
913f42a3a7
commit
1c18dc6577
2 changed files with 3 additions and 2 deletions
|
@ -19,6 +19,7 @@
|
|||
#include "common/alignment.h"
|
||||
#include "common/common_types.h"
|
||||
#include "core/core.h"
|
||||
#include "core/memory.h"
|
||||
#include "video_core/buffer_cache/buffer_block.h"
|
||||
#include "video_core/buffer_cache/map_interval.h"
|
||||
#include "video_core/memory_manager.h"
|
||||
|
|
|
@ -202,7 +202,7 @@ u8* MemoryManager::GetPointer(GPUVAddr addr) {
|
|||
|
||||
auto& memory = system.Memory();
|
||||
|
||||
const VAddr const page_addr{page_table.backing_addr[addr >> page_bits]};
|
||||
const VAddr page_addr{page_table.backing_addr[addr >> page_bits]};
|
||||
|
||||
if (page_addr != 0) {
|
||||
return memory.GetPointer(page_addr + (addr & page_mask));
|
||||
|
@ -219,7 +219,7 @@ const u8* MemoryManager::GetPointer(GPUVAddr addr) const {
|
|||
|
||||
const auto& memory = system.Memory();
|
||||
|
||||
const VAddr const page_addr{page_table.backing_addr[addr >> page_bits]};
|
||||
const VAddr page_addr{page_table.backing_addr[addr >> page_bits]};
|
||||
|
||||
if (page_addr != 0) {
|
||||
return memory.GetPointer(page_addr + (addr & page_mask));
|
||||
|
|
Loading…
Reference in a new issue