From a8ee545c63e2d7488b27fa1efc2ff49808d94539 Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Tue, 16 Feb 2016 18:14:39 -0800 Subject: [PATCH] Fix CPU Brand --- src/Math.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Math.cpp b/src/Math.cpp index 062301f..b23e220 100644 --- a/src/Math.cpp +++ b/src/Math.cpp @@ -35,7 +35,7 @@ void detectCPU() *reinterpret_cast((char*)g_cpuFeatures.cpuVendor) = regs[1]; *reinterpret_cast((char*)g_cpuFeatures.cpuVendor + 4) = regs[3]; *reinterpret_cast((char*)g_cpuFeatures.cpuVendor + 8) = regs[2]; - for (unsigned int i = 0x80000002; i < 0x80000004; i++) + for (unsigned int i = 0x80000002; i <= 0x80000004; i++) { getCpuInfo(i, regs); // Interpret CPU brand string and cache information.