Skip to content

Commit

Permalink
casting to 32-bit integer instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Lemire committed Nov 30, 2023
1 parent 0491a72 commit a3a1a05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/roaring/containers/bitset.h
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ static inline bool bitset_container_get_range(const bitset_container_t *bitset,
return false;
}

for (uint16_t i = (uint16_t)(start + 1); (i < BITSET_CONTAINER_SIZE_IN_WORDS) && (i < end); ++i){
for (uint32_t i = start + 1; (i < BITSET_CONTAINER_SIZE_IN_WORDS) && (i < end); ++i){

if (bitset->words[i] != UINT64_C(0xFFFFFFFFFFFFFFFF)) return false;
}
Expand Down

0 comments on commit a3a1a05

Please sign in to comment.