From 7728ba4ec3117313c8d33fc00bee1ece304ca097 Mon Sep 17 00:00:00 2001 From: Parvez Khan Date: Wed, 14 Aug 2024 15:05:18 +0530 Subject: [PATCH] Fix issue #1152 --- src/algorithms/math/bits/countSetBits.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/algorithms/math/bits/countSetBits.js b/src/algorithms/math/bits/countSetBits.js index 63839d4e..6e24eebf 100644 --- a/src/algorithms/math/bits/countSetBits.js +++ b/src/algorithms/math/bits/countSetBits.js @@ -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;