aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-11-23 19:15:16 +0100
committerMarc André Tanner <mat@brain-dump.org>2015-11-23 19:15:16 +0100
commitf364faff2b24d3226f49f93e4202e70dc93deead (patch)
tree5da86182ab35fe6cfdcea2417826281cd24ba0bf
parent6aa9342c60d4faa0510264f7a51e1b753704fc2b (diff)
downloadvis-f364faff2b24d3226f49f93e4202e70dc93deead.tar.gz
vis-f364faff2b24d3226f49f93e4202e70dc93deead.tar.xz
vis: fix compiler warnings related to `ga` implementation
-rw-r--r--main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.c b/main.c
index 04f12da..509e7bb 100644
--- a/main.c
+++ b/main.c
@@ -1,6 +1,7 @@
#include <signal.h>
#include <limits.h>
#include <string.h>
+#include <wchar.h>
#include <errno.h>
#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);