From b25fae929bce1a71ef70a398ba758cb7724ee091 Mon Sep 17 00:00:00 2001 From: Kloen Date: Tue, 24 Jan 2017 11:15:02 +0100 Subject: [PATCH] core: fix shared_memory.cpp warning on MSVC --- src/core/hle/kernel/shared_memory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/hle/kernel/shared_memory.cpp b/src/core/hle/kernel/shared_memory.cpp index bc1560d12..4fec77a61 100644 --- a/src/core/hle/kernel/shared_memory.cpp +++ b/src/core/hle/kernel/shared_memory.cpp @@ -35,7 +35,7 @@ SharedPtr SharedMemory::Create(SharedPtr owner_process, u "Not enough space in region to allocate shared memory!"); shared_memory->backing_block = linheap_memory; - shared_memory->backing_block_offset = linheap_memory->size(); + shared_memory->backing_block_offset = static_cast(linheap_memory->size()); // Allocate some memory from the end of the linear heap for this region. linheap_memory->insert(linheap_memory->end(), size, 0); memory_region->used += size;