From d02c05428d615b33f375933990cf030371d50198 Mon Sep 17 00:00:00 2001 From: Veselin Georgiev Date: Mon, 2 Jan 2023 13:18:01 +0200 Subject: [PATCH] Fix issue #179 (Misprint, not enough zeros in the constant) As suggested in the issue comment. --- libcpuid/cpuid_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcpuid/cpuid_main.c b/libcpuid/cpuid_main.c index 0c228f8..65f844a 100644 --- a/libcpuid/cpuid_main.c +++ b/libcpuid/cpuid_main.c @@ -725,7 +725,7 @@ static int cpuid_basic_identify(struct cpu_raw_data_t* raw, struct cpu_id_t* dat data->ext_family = data->family + xfamily; data->ext_model = data->model + (xmodel << 4); } - ext = raw->ext_cpuid[0][EAX] - 0x8000000; + ext = raw->ext_cpuid[0][EAX] - 0x80000000; /* obtain the brand string, if present: */ if (ext >= 4) {