diff --git a/enhanced/drlvm/trunk/vm/gc_gen/src/utils/bit_ops.h b/enhanced/drlvm/trunk/vm/gc_gen/src/utils/bit_ops.h index 34e0547..351cbac 100644 --- a/enhanced/drlvm/trunk/vm/gc_gen/src/utils/bit_ops.h +++ b/enhanced/drlvm/trunk/vm/gc_gen/src/utils/bit_ops.h @@ -52,7 +52,7 @@ inline unsigned int words_get_next_set_l { unsigned int bit_offset; - assert((start_idx >= 0) && (start_idx < 128)); + assert(start_idx < 128); unsigned int start_word_index = start_idx >> BIT_SHIFT_TO_BITS_PER_WORD; unsigned int start_bit_offset = start_idx & BIT_MASK_TO_BITS_PER_WORD; @@ -79,7 +79,7 @@ inline unsigned int words_get_next_set_l inline void words_set_bit(unsigned int* words, unsigned int count, unsigned int start_idx) { - assert((start_idx >= 0) && (start_idx < 128)); + assert(start_idx < 128); unsigned int word_index = start_idx >> BIT_SHIFT_TO_BITS_PER_WORD; unsigned int bit_offset = start_idx & BIT_MASK_TO_BITS_PER_WORD; @@ -98,7 +98,7 @@ inline void words_set_bit(unsigned int* inline void words_clear_bit(unsigned int* words, unsigned int count, unsigned int start_idx) { - assert((start_idx >= 0) && (start_idx < 128)); + assert(start_idx < 128); unsigned int word_index = start_idx >> BIT_SHIFT_TO_BITS_PER_WORD; unsigned int bit_offset = start_idx & BIT_MASK_TO_BITS_PER_WORD;