From f7e70aaf5f4b2edc1672a338f7008d911284e744 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Tue, 3 Dec 2024 13:07:01 +0000 Subject: [PATCH] Correct a printf %lX argument type Also change another from "long" to "unsigned long" for consistency. --- bedstead.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bedstead.c b/bedstead.c index 1176a87..4149edc 100644 --- a/bedstead.c +++ b/bedstead.c @@ -4532,7 +4532,7 @@ glyph_complement() (int)-((g->unicode == -1 ? row++ : g->unicode % nrow) * 40)); if (g->unicode != -1) - printf("(U+%04lX)", (long)g->unicode); + printf("(U+%04lX)", (unsigned long)g->unicode); else printf("()"); printf("/%s ", g->name); @@ -4542,7 +4542,8 @@ glyph_complement() while (target->flags & COMPAT) target = get_glyph_by_name(target->alias_of); if (target->unicode != -1) - printf("(USE U+%04lX) sash ", target->unicode); + printf("(USE U+%04lX) sash ", + (unsigned long)target->unicode); else printf("(USE %s) sash ", g->alias_of); } -- 2.30.2