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 7cf30a5..7d17bbf 100644
--- a/text.c
+++ b/text.c
@@ -756,7 +756,7 @@ Text *text_load_fd(int fd) {
}
static void print_piece(Piece *p) {
- fprintf(stderr, "index: %d\tnext: %d\tprev: %d\t len: %d\t data: %p\n", p->index,
+ fprintf(stderr, "index: %d\tnext: %d\tprev: %d\t len: %zd\t data: %p\n", p->index,
p->next ? p->next->index : -1,
p->prev ? p->prev->index : -1,
p->len, p->data);