aboutsummaryrefslogtreecommitdiff
path: root/text.c
diff options
context:
space:
mode:
Diffstat (limited to 'text.c')
-rw-r--r--text.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/text.c b/text.c
index 9367bd4..b88d859 100644
--- a/text.c
+++ b/text.c
@@ -1604,11 +1604,11 @@ bool text_iterator_char_prev(Iterator *it, char *c) {
return true;
}
-bool text_byte_get(Text *txt, size_t pos, char *byte) {
+bool text_byte_get(const Text *txt, size_t pos, char *byte) {
return text_bytes_get(txt, pos, 1, byte);
}
-size_t text_bytes_get(Text *txt, size_t pos, size_t len, char *buf) {
+size_t text_bytes_get(const Text *txt, size_t pos, size_t len, char *buf) {
if (!buf)
return 0;
char *cur = buf;