From e04061d71cb35f0541dda331f430b6becc3e6dc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Wed, 30 Sep 2020 10:37:05 +0200 Subject: text: mark text_iterator_byte_get argument as const --- text.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'text.c') diff --git a/text.c b/text.c index 93f94a0..4c0b710 100644 --- a/text.c +++ b/text.c @@ -1409,7 +1409,7 @@ Iterator text_iterator_get(const Text *txt, size_t pos) { return it; } -bool text_iterator_byte_get(Iterator *it, char *b) { +bool text_iterator_byte_get(const Iterator *it, char *b) { if (text_iterator_valid(it)) { Text *txt = text_iterator_text(it); if (it->start <= it->text && it->text < it->end) { -- cgit v1.2.3