Correct a printf %lX argument type

Also change another from "long" to "unsigned long" for consistency.
This commit is contained in:
Ben Harris 2024-12-03 13:07:01 +00:00
parent 03b881a394
commit f7e70aaf5f

View File

@ -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);
}