Skip to content

Commit

Permalink
cpubits_max() fix
Browse files Browse the repository at this point in the history
Signed-off-by: Burt P <pburt0@gmail.com>
  • Loading branch information
bp0 authored and lpereira committed Dec 9, 2017
1 parent 305c4eb commit b5b0810
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hardinfo/cpubits.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b5b0810

Please sign in to comment.