core: fix shared_memory.cpp warning on MSVC

This commit is contained in:
Kloen 2017-01-24 11:15:02 +01:00
parent 7ea0c321af
commit b25fae929b

View File

@ -35,7 +35,7 @@ SharedPtr<SharedMemory> SharedMemory::Create(SharedPtr<Process> 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<u32>(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;