From b7e363d56ec656930c3732794ca6127ed3aae8e8 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Tue, 27 Aug 2019 23:10:09 -0400 Subject: Cast %lc parameter to wint_t I hadn't realized that's what type %lc takes and suddenly started seeing warnings about it for some reason. --- bin/psfed.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bin/psfed.c') diff --git a/bin/psfed.c b/bin/psfed.c index 2eb8275d..3f72816a 100644 --- a/bin/psfed.c +++ b/bin/psfed.c @@ -289,7 +289,10 @@ static void normalInc(uint32_t n) { } static void normalPrint(const char *prefix) { if (normal.index <= 256) { - printf("%s: %02X '%lc'\n", prefix, normal.index, CP437[normal.index]); + printf( + "%s: %02X '%lc'\n", + prefix, normal.index, (wint_t)CP437[normal.index] + ); } else { printf("%s: %02X\n", prefix, normal.index); } -- cgit 1.4.1