From ba530ac94d8f453e04e83323e94b3e0a49e64ad6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Tue, 20 Oct 2020 18:26:20 +0200 Subject: text: fix invalid pointer comparison --- text-iterator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'text-iterator.c') diff --git a/text-iterator.c b/text-iterator.c index a70a5a9..e080ca5 100644 --- a/text-iterator.c +++ b/text-iterator.c @@ -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; -- cgit v1.2.3