Permalink
Browse files

cpubits_max() fix

Signed-off-by: Burt P <pburt0@gmail.com>
  • Loading branch information...
bp0 authored and lpereira committed Dec 9, 2017
1 parent 305c4eb commit b5b0810cc60d2d266b72b50ba98136ae2bab3b84
Showing with 1 addition and 1 deletion.
  1. +1 −1 hardinfo/cpubits.c
View
@@ -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;

0 comments on commit b5b0810

Please sign in to comment.