diff options
Diffstat (limited to 'hardinfo/cpubits.c')
-rw-r--r-- | hardinfo/cpubits.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hardinfo/cpubits.c b/hardinfo/cpubits.c index ba9bffc7..7ab03be8 100644 --- a/hardinfo/cpubits.c +++ b/hardinfo/cpubits.c @@ -41,7 +41,7 @@ uint32_t cpubits_count(cpubits *b) { } int cpubits_max(cpubits *b) { - int i = CPUBITS_SIZE * 8; + int i = CPUBITS_SIZE * 8 - 1; while (i >= 0) { if (CPUBIT_GET(b, i)) break; |