chiark / gitweb /
Correct a printf %lX argument type
authorBen Harris <bjh21@bjh21.me.uk>
Tue, 3 Dec 2024 13:07:01 +0000 (13:07 +0000)
committerBen Harris <bjh21@bjh21.me.uk>
Tue, 3 Dec 2024 13:07:01 +0000 (13:07 +0000)
Also change another from "long" to "unsigned long" for consistency.

bedstead.c

index 1176a8754aaa6e5284e158111938c13b7f842c58..4149edc7786852deb0476860a8fb0a65ded6f0a3 100644 (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);
                }