diff options
author | Burt P <pburt0@gmail.com> | 2017-12-09 13:09:34 -0600 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2017-12-09 12:09:33 -0800 |
commit | b5b0810cc60d2d266b72b50ba98136ae2bab3b84 (patch) | |
tree | 6b7690d1d447d368f68b38df9a85701477ecae29 /hardinfo/cpubits.c | |
parent | 305c4eb9d4b1b6a233ba0c01242c87f2d853e874 (diff) |
cpubits_max() fix
Signed-off-by: Burt P <pburt0@gmail.com>
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; |