summary refs log tree commit diff
path: root/bin/psfed.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-08-27 23:10:09 -0400
committerJune McEnroe <june@causal.agency>2019-08-27 23:10:09 -0400
commit85423674ad6fec0609726ab4d0e22674e9c1c6c1 (patch)
tree8343acbea9b735d7eacbe38b77fd0293b5dc9537 /bin/psfed.c
parentRemove host thursday (diff)
downloadsrc-85423674ad6fec0609726ab4d0e22674e9c1c6c1.tar.gz
src-85423674ad6fec0609726ab4d0e22674e9c1c6c1.zip
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.
Diffstat (limited to 'bin/psfed.c')
-rw-r--r--bin/psfed.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/psfed.c b/bin/psfed.c
index 18627a83..4f46b500 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);
 	}