chiark / gitweb /
Make a couple more Unicode-related variables unsigned
authorBen Harris <bjh21@bjh21.me.uk>
Tue, 13 Jan 2026 22:11:43 +0000 (22:11 +0000)
committerBen Harris <bjh21@bjh21.me.uk>
Tue, 13 Jan 2026 22:11:43 +0000 (22:11 +0000)
This deals with some warnings when building with Emscripten.

bedstead.c

index 684894de1e7d15de5ada7379b815e7724bc36898..4040e46d5a0320b2ff9623d663b842325f62ed5d 100644 (file)
@@ -4084,7 +4084,7 @@ static void
 docmap(int pid, int eid, int format)
 {
        int i;
-       long limit = 0x10000;
+       unsigned long limit = 0x10000;
 
        printf("<cmap_format_%d platformID='%d' platEncID='%d' language='0'",
               format, pid, eid);
@@ -5191,7 +5191,7 @@ static void
 glyph_complement()
 {
        int const nrow = 16, ncol=12;
-       long unicol = 32/nrow;
+       unsigned long unicol = 32/nrow;
        int i, col = -1, row = 0;
        int npages = 0;
        bool newcol = false;