summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-01-01 21:40:35 +0100
committerbunnei <bunneidev@gmail.com>2018-01-01 21:40:35 +0100
commit93480b10ef443dbc616a9240fe8f7456315c1940 (patch)
treeca1f8c7f31835e3c895e72e08745789034c2758b /src/core/hle
parentsvc: Stub out svcWaitSynchronization. (diff)
downloadyuzu-93480b10ef443dbc616a9240fe8f7456315c1940.tar
yuzu-93480b10ef443dbc616a9240fe8f7456315c1940.tar.gz
yuzu-93480b10ef443dbc616a9240fe8f7456315c1940.tar.bz2
yuzu-93480b10ef443dbc616a9240fe8f7456315c1940.tar.lz
yuzu-93480b10ef443dbc616a9240fe8f7456315c1940.tar.xz
yuzu-93480b10ef443dbc616a9240fe8f7456315c1940.tar.zst
yuzu-93480b10ef443dbc616a9240fe8f7456315c1940.zip
Diffstat (limited to 'src/core/hle')
-rw-r--r--src/core/hle/kernel/memory.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/memory.cpp b/src/core/hle/kernel/memory.cpp
index 95d3a6bf6..d990d0569 100644
--- a/src/core/hle/kernel/memory.cpp
+++ b/src/core/hle/kernel/memory.cpp
@@ -69,8 +69,8 @@ void MemoryInit(u32 mem_type) {
// app_mem_malloc does not always match the configured size for memory_region[0]: in case the
// n3DS type override is in effect it reports the size the game expects, not the real one.
config_mem.app_mem_alloc = memory_region_sizes[mem_type][0];
- config_mem.sys_mem_alloc = memory_regions[1].size;
- config_mem.base_mem_alloc = memory_regions[2].size;
+ config_mem.sys_mem_alloc = static_cast<u32_le>(memory_regions[1].size);
+ config_mem.base_mem_alloc = static_cast<u32_le>(memory_regions[2].size);
}
void MemoryShutdown() {