diff options
| -rw-r--r-- | config.def.h | 2 | ||||
| -rw-r--r-- | text.c | 2 | ||||
| -rw-r--r-- | window.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/config.def.h b/config.def.h index aac28a8..96ebf9e 100644 --- a/config.def.h +++ b/config.def.h @@ -79,7 +79,7 @@ static void statusbar(EditorWin *win) { text_modified(win->text) ? "[+]" : "", vis->recording ? "recording": ""); char buf[win->width + 1]; - int len = snprintf(buf, win->width, "%d, %d", line, col); + int len = snprintf(buf, win->width, "%zd, %zd", line, col); if (len > 0) { buf[len] = '\0'; mvwaddstr(win->statuswin, 0, win->width - len - 1, buf); @@ -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); @@ -108,7 +108,7 @@ void window_selection_clear(Win *win) { static int window_numbers_width(Win *win) { if (!win->winnum) return 0; - return snprintf(NULL, 0, "%d", win->topline->lineno + win->height - 1) + 1; + return snprintf(NULL, 0, "%zd", win->topline->lineno + win->height - 1) + 1; } static void window_numbers_draw(Win *win) { |
