diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2020-09-30 10:58:19 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2020-10-10 10:03:17 +0200 |
| commit | 89677f14399057b96ca12e901e045db61e379931 (patch) | |
| tree | fb8de01535490223b40eff31a1e92c0392029d8d /text.c | |
| parent | 3614dd5811ebb0b7286e7ad8b66b4ef2ea6cc9c4 (diff) | |
| download | vis-89677f14399057b96ca12e901e045db61e379931.tar.gz vis-89677f14399057b96ca12e901e045db61e379931.tar.xz | |
text: mark text_mmaped argument as const
Diffstat (limited to 'text.c')
| -rw-r--r-- | text.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1379,7 +1379,7 @@ bool text_modified(const Text *txt) { return txt->saved_revision != txt->history; } -bool text_mmaped(Text *txt, const char *ptr) { +bool text_mmaped(const Text *txt, const char *ptr) { uintptr_t addr = (uintptr_t)ptr; for (size_t i = 0, len = array_length(&txt->blocks); i < len; i++) { Block *blk = array_get_ptr(&txt->blocks, i); |
