From: Ben Harris Date: Tue, 3 Dec 2024 13:07:01 +0000 (+0000) Subject: Correct a printf %lX argument type X-Git-Tag: bedstead-3.251~81 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~bjharris/git?a=commitdiff_plain;h=f7e70aaf5f4b2edc1672a338f7008d911284e744;p=bedstead.git Correct a printf %lX argument type Also change another from "long" to "unsigned long" for consistency. --- 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); }