aboutsummaryrefslogtreecommitdiffstats
path: root/libfonts_decode_font_description.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2023-01-08 22:19:02 +0100
committerMattias Andrée <maandree@kth.se>2023-01-08 22:19:02 +0100
commit603142e23528061e7ba5bdbcb466e676237745a8 (patch)
treecbcff6a1032d056e1e7b87846fdcc96248b932a7 /libfonts_decode_font_description.c
parentPartially implement libfonts_get_default_font, libfonts_get_{default,output}_rendering_settings (diff)
downloadlibfonts-603142e23528061e7ba5bdbcb466e676237745a8.tar.gz
libfonts-603142e23528061e7ba5bdbcb466e676237745a8.tar.bz2
libfonts-603142e23528061e7ba5bdbcb466e676237745a8.tar.xz
Fix warnings
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libfonts_decode_font_description.c')
-rw-r--r--libfonts_decode_font_description.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libfonts_decode_font_description.c b/libfonts_decode_font_description.c
index 2348d97..74a9571 100644
--- a/libfonts_decode_font_description.c
+++ b/libfonts_decode_font_description.c
@@ -123,16 +123,16 @@ fix_charset_subset(char *out, const char *in)
saved.last = ranges[i].last;
} else {
if (saved.first == saved.last)
- out += sprintf(out, "%"PRId32" ", saved.first);
+ out += sprintf(out, "%"PRIu32" ", saved.first);
else
- out += sprintf(out, "%"PRId32"-%"PRId32" ", saved.first, saved.last);
+ out += sprintf(out, "%"PRIu32"-%"PRIu32" ", saved.first, saved.last);
saved = ranges[i];
}
}
if (saved.first == saved.last)
- out += sprintf(out, "%"PRId32" ", saved.first);
+ out += sprintf(out, "%"PRIu32" ", saved.first);
else
- out += sprintf(out, "%"PRId32"-%"PRId32" ", saved.first, saved.last);
+ out += sprintf(out, "%"PRIu32"-%"PRIu32" ", saved.first, saved.last);
out[-1] = '\0';
return 0;