summaryrefslogtreecommitdiff
path: root/mkfontscale.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2023-11-04 12:21:16 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2023-11-06 14:19:08 -0800
commit3bc4d05ff753c1b8357455a614bc5d11fffcfc0e (patch)
tree5f73b4f9f9a0f53ef4292af6f80a51b5f75f5d44 /mkfontscale.c
parent19137ec2f129f91ce3adb46218c86e1bf547e661 (diff)
Resolve some -Wsign-conversion warnings from clang
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'mkfontscale.c')
-rw-r--r--mkfontscale.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mkfontscale.c b/mkfontscale.c
index 79d41bc..f9333ce 100644
--- a/mkfontscale.c
+++ b/mkfontscale.c
@@ -500,7 +500,7 @@ unsafe(char c)
static const char *
safe(const char *s)
{
- int i, len, safe_flag = 1;
+ unsigned int i, len, safe_flag = 1;
char *t;
i = 0;
@@ -1181,7 +1181,7 @@ checkEncoding(FT_Face face, const char *encoding_name)
else
koi8 = 0;
for (int i = encoding->first; i < encoding->size; i++) {
- int c = FontEncRecode(i, mapping);
+ unsigned int c = FontEncRecode(i, mapping);
if (CODE_IGNORED(c) ||
(koi8 &&
((c >= 0x2200 && c < 0x2600) || c == 0x00b2))) {
@@ -1270,7 +1270,7 @@ checkExtraEncoding(FT_Face face, const char *encoding_name, int found)
/* Export as Unicode if there are at least 15 BMP
characters that are not a space or ignored. */
- for (int c = 0x21; c < 0x10000; c++) {
+ for (unsigned int c = 0x21; c < 0x10000; c++) {
if (CODE_IGNORED(c))
continue;
if (FT_Get_Char_Index(face, c) > 0)