From 7bf827d37a246a533d93dac8e17a7450c6267354 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Mon, 3 Feb 2020 11:36:31 -0800 Subject: vi: fix 32-bit build. --- toys/pending/vi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/pending/vi.c') diff --git a/toys/pending/vi.c b/toys/pending/vi.c index 551184c0..5086a0da 100644 --- a/toys/pending/vi.c +++ b/toys/pending/vi.c @@ -1472,7 +1472,7 @@ static void draw_page() if (TT.vi_mode == 2) printf("\x1b[1m-- INSERT --\x1b[m"); if (!TT.vi_mode) printf("\x1b[1m%s \x1b[m",TT.il->data); - sprintf(toybuf, "%ld / %ld,%d,%d", TT.cursor, TT.filesize, + sprintf(toybuf, "%zu / %zu,%d,%d", TT.cursor, TT.filesize, TT.cur_row+1, TT.cur_col+1); if (TT.cur_col != cx_scr) sprintf(toybuf+strlen(toybuf),"-%d", cx_scr+1); -- cgit v1.2.3