Quell a few compiler warnings

This commit is contained in:
Ben Harris 2024-11-19 23:02:35 +00:00
parent 05decf272d
commit 3434aa062f

View File

@ -3533,11 +3533,11 @@ dogpos(void)
struct glyph *g = realglyph(&glyphs[i]);
if (g->flags & (MOS6|MOS4)) continue;
int fp = glyph_footprint(g->data);
if ((fp & (0xff << (XSIZE-dx-1))) == 0 &&
(fp & (0xff << (XSIZE-dx-2))) != 0 &&
(fp & ((1 << (dh - dx)) - 1)) == 0 &&
(fp & ((1 << (dh - dx + 1)) - 1)) != 0 ||
fp == 0 && dx == 0 && dh == 3)
if (((fp & (0xff << (XSIZE-dx-1))) == 0 &&
(fp & (0xff << (XSIZE-dx-2))) != 0 &&
(fp & ((1 << (dh - dx)) - 1)) == 0 &&
(fp & ((1 << (dh - dx + 1)) - 1)) != 0) ||
(fp == 0 && dx == 0 && dh == 3))
TTXS("Glyph", glyphs[i].name);
}
printf(" </Coverage>\n");
@ -3941,7 +3941,7 @@ emit_hints(int vstems[XSIZE], int ledges[XSIZE], int redges[XSIZE],
printf("%c", "X0100"[vhints[i]]);
nhints++;
}
printf("0000000" + (nhints - 1) % 8);
printf("%s", &"0000000"[(nhints - 1) % 8]);
}
}