From 323ce64764ea1f3fb5ed9bd925c685db93b58925 Mon Sep 17 00:00:00 2001 From: pineappleEA Date: Mon, 16 Aug 2021 18:08:38 +0200 Subject: [PATCH] early-access version 1996 --- README.md | 2 +- src/core/hle/kernel/kernel.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6e6b4f16c..6e275ec71 100755 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ yuzu emulator early access ============= -This is the source code for early-access 1995. +This is the source code for early-access 1996. ## Legal Notice diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp index 1db343839..8fdab44e4 100755 --- a/src/core/hle/kernel/kernel.cpp +++ b/src/core/hle/kernel/kernel.cpp @@ -265,8 +265,8 @@ struct KernelCore::Impl { /// Gets the host thread ID for the caller, allocating a new one if this is the first time u32 GetHostThreadId(std::size_t core_id) { - if (static_cast(host_thread_id) < 0) { - // The first for slots are reserved for CPU core threads + if (host_thread_id == UINT32_MAX) { + // The first four slots are reserved for CPU core threads ASSERT(core_id < Core::Hardware::NUM_CPU_CORES); host_thread_id = static_cast(core_id); } @@ -275,7 +275,7 @@ struct KernelCore::Impl { /// Gets the host thread ID for the caller, allocating a new one if this is the first time u32 GetHostThreadId() { - if (static_cast(host_thread_id) < 0) { + if (host_thread_id == UINT32_MAX) { host_thread_id = next_host_thread_id++; } return host_thread_id;