Skip to content

Commit 7728ba4

Browse files
committedAug 14, 2024
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

+1-1
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)
Please sign in to comment.