aboutsummaryrefslogtreecommitdiff
path: root/text.c
diff options
context:
space:
mode:
Diffstat (limited to 'text.c')
-rw-r--r--text.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/text.c b/text.c
index eb4058d..096a8b7 100644
--- a/text.c
+++ b/text.c
@@ -1641,7 +1641,7 @@ char *text_bytes_alloc0(const Text *txt, size_t pos, size_t len) {
return buf;
}
-size_t text_size(Text *txt) {
+size_t text_size(const Text *txt) {
return txt->size;
}