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;