summaryrefslogtreecommitdiff
path: root/src/core/core.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/core.cpp')
-rw-r--r--src/core/core.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp
index c2295f69c..c53d122be 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -121,8 +121,8 @@ struct System::Impl {
121 } 121 }
122 122
123 Kernel::PhysicalCore& CurrentPhysicalCore() { 123 Kernel::PhysicalCore& CurrentPhysicalCore() {
124 const auto i = cpu_manager.GetActiveCoreIndex(); 124 const auto index = cpu_manager.GetActiveCoreIndex();
125 return kernel.PhysicalCore(i); 125 return kernel.PhysicalCore(index);
126 } 126 }
127 127
128 Kernel::PhysicalCore& GetPhysicalCore(std::size_t index) { 128 Kernel::PhysicalCore& GetPhysicalCore(std::size_t index) {