Skip to content

Commit

Permalink
text: fix invalid pointer comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
martanne committed Oct 30, 2020
1 parent 87dacc4 commit ba530ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion text-iterator.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ bool text_iterator_byte_next(Iterator *it, char *b) {
if (!text_iterator_has_next(it))
return false;
bool eof = true;
if (it->text < it->end) {
if (it->text != it->end) {
it->text++;
it->pos++;
eof = false;
Expand Down

0 comments on commit ba530ac

Please sign in to comment.