summaryrefslogtreecommitdiffstats
path: root/src/core/gdbstub/gdbstub.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-12-19 04:37:01 +0100
committerLioncash <mathew1800@gmail.com>2018-12-19 04:37:03 +0100
commit8435451093b193c1a1556a9edadc5663d3372b02 (patch)
treea162bf2b2482784bb1fe69ea27bc64c9d49c3424 /src/core/gdbstub/gdbstub.cpp
parentkernel/svc: Correct output parameter for svcGetProcessId (diff)
downloadyuzu-8435451093b193c1a1556a9edadc5663d3372b02.tar
yuzu-8435451093b193c1a1556a9edadc5663d3372b02.tar.gz
yuzu-8435451093b193c1a1556a9edadc5663d3372b02.tar.bz2
yuzu-8435451093b193c1a1556a9edadc5663d3372b02.tar.lz
yuzu-8435451093b193c1a1556a9edadc5663d3372b02.tar.xz
yuzu-8435451093b193c1a1556a9edadc5663d3372b02.tar.zst
yuzu-8435451093b193c1a1556a9edadc5663d3372b02.zip
Diffstat (limited to 'src/core/gdbstub/gdbstub.cpp')
-rw-r--r--src/core/gdbstub/gdbstub.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/gdbstub/gdbstub.cpp b/src/core/gdbstub/gdbstub.cpp
index e6b5171ee..a1cad4fcb 100644
--- a/src/core/gdbstub/gdbstub.cpp
+++ b/src/core/gdbstub/gdbstub.cpp
@@ -201,11 +201,11 @@ void RegisterModule(std::string name, VAddr beg, VAddr end, bool add_elf_ext) {
modules.push_back(std::move(module));
}
-static Kernel::Thread* FindThreadById(int id) {
+static Kernel::Thread* FindThreadById(s64 id) {
for (u32 core = 0; core < Core::NUM_CPU_CORES; core++) {
const auto& threads = Core::System::GetInstance().Scheduler(core).GetThreadList();
for (auto& thread : threads) {
- if (thread->GetThreadID() == static_cast<u32>(id)) {
+ if (thread->GetThreadID() == static_cast<u64>(id)) {
current_core = core;
return thread.get();
}