Skip to content

Commit be3c7b5

Browse files
authored
Merge pull request ceph#62217 from aainscow/flat_maps_fix
common: Remove unnecessary assert checking unsigned number is 0 or greater in bitset_set.h
2 parents c8c15bd + 53bac46 commit be3c7b5

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)