Skip to content

Commit 53bac46

Browse files
committed
common: Remove unnecessary assert checking unsigned number is 0 or greater.
Minor compiler warning caused by unsigned comparison with zero. Clearly assert is not necessary and so was removed. Wrapping scenarios are policed using remaining assert code. Signed-off-by: Alex Ainscow <[email protected]>
1 parent 9ef9c12 commit 53bac46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/bitset_set.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ class bitset_set {
220220
// This is not an off-by-one error. Conventionally this would have length
221221
// - 1, but the logic below is simpler with it as follows.
222222
unsigned end_word = (int(start) + length) / bits_per_uint64_t;
223-
ceph_assert(0 <= end_word && end_word < word_count + 1);
223+
ceph_assert(end_word < word_count + 1);
224224

225225
if (start_word == end_word) {
226226
words[start_word] &=

0 commit comments

Comments
 (0)