From 1f3be161932046e904f2a7dee06aee006bef6345 Mon Sep 17 00:00:00 2001 From: John Zaitseff Date: Mon, 29 Aug 2011 09:34:29 +1000 Subject: [PATCH] The "%lc" directive requires a wint_t type, not wchar_t This is essentially only to keep GCC quiet. --- src/intf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intf.c b/src/intf.c index eb76e57..6a86b46 100644 --- a/src/intf.c +++ b/src/intf.c @@ -124,7 +124,7 @@ typedef struct txwin { c = (_var); \ if ((w = wcwidth(c)) < 1) { \ err_exit(_("%s: character has illegal width: `%lc'"), \ - __stringify(_err), c); \ + __stringify(_err), (wint_t) c); \ } \ \ memset(&mbstate, 0, sizeof(mbstate)); \