From c7c12941bc55800647fc8eac3968ba4ff125bff7 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Fri, 27 Sep 2019 19:59:40 +0300 Subject: [PATCH] Fix wrong comments in CPUThread.h It's not an upcast. --- rpcs3/Emu/CPU/CPUThread.cpp | 2 ++ rpcs3/Emu/CPU/CPUThread.h | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/CPU/CPUThread.cpp b/rpcs3/Emu/CPU/CPUThread.cpp index 2829727019..d9ac516f94 100644 --- a/rpcs3/Emu/CPU/CPUThread.cpp +++ b/rpcs3/Emu/CPU/CPUThread.cpp @@ -296,6 +296,7 @@ bool cpu_thread::check_state() noexcept void cpu_thread::notify() { + // Downcast to correct type if (id_type() == 1) { thread_ctrl::notify(*static_cast*>(this)); @@ -312,6 +313,7 @@ void cpu_thread::notify() void cpu_thread::abort() { + // Downcast to correct type if (id_type() == 1) { *static_cast*>(this) = thread_state::aborting; diff --git a/rpcs3/Emu/CPU/CPUThread.h b/rpcs3/Emu/CPU/CPUThread.h index fe142cec35..8483bb8031 100644 --- a/rpcs3/Emu/CPU/CPUThread.h +++ b/rpcs3/Emu/CPU/CPUThread.h @@ -78,11 +78,9 @@ public: return id >> 24; } - // Upcast and notify void notify(); private: - // Upcast and abort void abort(); public: