Skip to content

Commit 7728ba4

Browse files
committed
Fix issue trekhleb#1152
1 parent ca3d16d commit 7728ba4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/algorithms/math/bits/countSetBits.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default function countSetBits(originalNumber) {
1111
setBitsCount += number & 1;
1212

1313
// Shift number right by one bit to investigate other bits.
14-
number >>>= 1;
14+
number >>= 1;
1515
}
1616

1717
return setBitsCount;

0 commit comments

Comments
 (0)