From a13fd2f909476fb59680c80e0e87e90f2cf963b9 Mon Sep 17 00:00:00 2001 From: Kloen Date: Mon, 23 Jan 2017 18:13:24 +0100 Subject: [PATCH] core: fix thread.cpp size_t to u32 warnings --- src/core/hle/kernel/thread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp index 3b7555d87..4127414e3 100644 --- a/src/core/hle/kernel/thread.cpp +++ b/src/core/hle/kernel/thread.cpp @@ -403,7 +403,7 @@ ResultVal> Thread::Create(std::string name, VAddr entry_point, ErrorSummary::OutOfResource, ErrorLevel::Permanent); } - u32 offset = linheap_memory->size(); + u32 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(), Memory::PAGE_SIZE, 0); @@ -411,7 +411,7 @@ ResultVal> Thread::Create(std::string name, VAddr entry_point, Kernel::g_current_process->linear_heap_used += Memory::PAGE_SIZE; tls_slots.emplace_back(0); // The page is completely available at the start - available_page = tls_slots.size() - 1; + available_page = static_cast(tls_slots.size() - 1); available_slot = 0; // Use the first slot in the new page auto& vm_manager = Kernel::g_current_process->vm_manager;