---
toys/pending/vi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
From 0f3c59ee296825ca3b11b61d9fdab8c81fc233ec Mon Sep 17 00:00:00 2001
From: Elliott Hughes <[email protected]>
Date: Mon, 3 Feb 2020 11:36:31 -0800
Subject: [PATCH] vi: fix 32-bit build.
---
toys/pending/vi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
--
2.25.0.341.g760bfbb309-goog
_______________________________________________
Toybox mailing list
[email protected]
http://lists.landley.net/listinfo.cgi/toybox-landley.net