Skip to content

Commit

Permalink
Fix issue trekhleb#1152
Browse files Browse the repository at this point in the history
  • Loading branch information
Parvezkhan0 committed Aug 14, 2024
1 parent ca3d16d commit 7728ba4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/algorithms/math/bits/countSetBits.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default function countSetBits(originalNumber) {
setBitsCount += number & 1;

// Shift number right by one bit to investigate other bits.
number >>>= 1;
number >>= 1;
}

return setBitsCount;
Expand Down

0 comments on commit 7728ba4

Please sign in to comment.