diff options
Diffstat (limited to '')
-rw-r--r-- | src/nxt_clang.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nxt_clang.h b/src/nxt_clang.h index 0622aad3..a9b8cd9e 100644 --- a/src/nxt_clang.h +++ b/src/nxt_clang.h @@ -143,8 +143,8 @@ nxt_popcount(unsigned int x) { int count; - for (count = 0; x != 0; x >>= 1) { - count += (x & 1); + for (count = 0; x != 0; count++) { + x &= x - 1; } return count; |