Skip to content

Commit

Permalink
Words are unsigned so no need to check if <0
Browse files Browse the repository at this point in the history
  • Loading branch information
acf authored and iamleeg committed Sep 3, 2020
1 parent 20a1643 commit ff364ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RealWordMemory.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Word RealWordMemory_segment_word(Word s, Word w) {
}

void RealWordMemory_bit_indices_should_be_in_word_range(Word firstBitIndex, Word lastBitIndex) {
assert(firstBitIndex >= 0 && firstBitIndex <= 15);
assert(firstBitIndex <= 15);
assert(lastBitIndex >= firstBitIndex && lastBitIndex <= 15);
}

Expand Down

0 comments on commit ff364ef

Please sign in to comment.