diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2022-11-13 05:56:12 -0500 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2022-11-13 05:57:50 -0500 |
commit | de4592a18bba0bfc88232f6f4ecad7c2fa5e616e (patch) | |
tree | fffe333bfeec5f9f7448fbb0630ea28052aa67b4 | |
parent | 98e27ba4b2c3a4825a3497cd481992374a9c9e98 (diff) | |
download | xorg-lib-libXft-de4592a18bba0bfc88232f6f4ecad7c2fa5e616e.tar.gz |
fix compiler warning
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
-rw-r--r-- | src/xftglyphs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xftglyphs.c b/src/xftglyphs.c index 145828e..3a3dfd2 100644 --- a/src/xftglyphs.c +++ b/src/xftglyphs.c @@ -847,11 +847,11 @@ XftFontLoadGlyphs (Display *dpy, if (font->info.load_flags & FT_LOAD_VERTICAL_LAYOUT) { xftg->metrics.xOff = 0; - xftg->metrics.yOff = -TRUNC(ROUND(glyphslot->advance.y)); + xftg->metrics.yOff = (short)(-TRUNC(ROUND(glyphslot->advance.y))); } else { - xftg->metrics.xOff = TRUNC(ROUND(glyphslot->advance.x)); + xftg->metrics.xOff = (short)(TRUNC(ROUND(glyphslot->advance.x))); xftg->metrics.yOff = 0; } } |