From 4714b060b8b17123f835dd9a3f55ce0fab5b964e Mon Sep 17 00:00:00 2001 From: Kloen Date: Tue, 24 Jan 2017 11:10:11 +0100 Subject: [PATCH] core: fix erreula.cpp warning on MSVC --- src/core/hle/applets/erreula.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/hle/applets/erreula.cpp b/src/core/hle/applets/erreula.cpp index 75d7fd9fc..df1ef4c48 100644 --- a/src/core/hle/applets/erreula.cpp +++ b/src/core/hle/applets/erreula.cpp @@ -31,7 +31,7 @@ ResultCode ErrEula::ReceiveParameter(const Service::APT::MessageParameter& param heap_memory = std::make_shared>(capture_info.size); // Create a SharedMemory that directly points to this heap block. framebuffer_memory = Kernel::SharedMemory::CreateForApplet( - heap_memory, 0, heap_memory->size(), MemoryPermission::ReadWrite, + heap_memory, 0, static_cast(heap_memory->size()), MemoryPermission::ReadWrite, MemoryPermission::ReadWrite, "ErrEula Memory"); // Send the response message with the newly created SharedMemory