Skip to content

Commit 1c77291

Browse files
committed
1 parent 47f0a2d commit 1c77291

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/int_utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ static inline int CountBits(I val, int max) {
149149
ret = _BitScanReverse64(&index, val);
150150
}
151151
if (!ret) return 0;
152-
return index;
152+
return index + 1;
153153
#else
154154
while (max && (val >> (max - 1) == 0)) --max;
155155
return max;

0 commit comments

Comments
 (0)