From f364faff2b24d3226f49f93e4202e70dc93deead Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Mon, 23 Nov 2015 19:15:16 +0100 Subject: vis: fix compiler warnings related to `ga` implementation --- main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index 04f12da..509e7bb 100644 --- a/main.c +++ b/main.c @@ -1,6 +1,7 @@ #include #include #include +#include #include #include "ui-curses.h" @@ -1571,7 +1572,7 @@ static const char *unicode_info(Vis *vis, const char *keys, const Arg *arg) { mbtowc(&wc, data_cur, len); int width = wcwidth(wc); info_cur += snprintf(info_cur, sizeof(info) - (info_cur - info) - 1, - "<%s%.*s> U+%04x ", width == 0 ? " " : "", len, data_cur, wc); + "<%s%.*s> U+%04x ", width == 0 ? " " : "", (int)len, data_cur, wc); data_cur += len; } vis_info_show(vis, "%s", info); -- cgit v1.2.3