1
0
Fork 0
mirror of https://github.com/anrieff/libcpuid synced 2025-01-23 20:06:41 +00:00

Fix issue #179 (Misprint, not enough zeros in the constant)

As suggested in the issue comment.
This commit is contained in:
Veselin Georgiev 2023-01-02 13:18:01 +02:00
parent 3b0a1f7e5b
commit d02c05428d

View file

@ -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) {