aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);