summaryrefslogtreecommitdiff
path: root/src/w32uniscribe.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2008-08-29 08:41:52 +0000
committerEli Zaretskii <eliz@gnu.org>2008-08-29 08:41:52 +0000
commit4bf84f7d73ebe52de16916167b47063a89818e4a (patch)
tree1c3cafc737d482deb1c0202bcd4037a1032c7bb9 /src/w32uniscribe.c
parent19ac20343f9a061576619ec1a978060f265e4283 (diff)
downloademacs-4bf84f7d73ebe52de16916167b47063a89818e4a.tar.gz
(uniscribe_shape): Shut up compiler warning in LGLYPH_SET_CODE.
Diffstat (limited to 'src/w32uniscribe.c')
-rw-r--r--src/w32uniscribe.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/w32uniscribe.c b/src/w32uniscribe.c
index 461903543d1..871b7925ddc 100644
--- a/src/w32uniscribe.c
+++ b/src/w32uniscribe.c
@@ -339,13 +339,18 @@ uniscribe_shape (lgstring)
int lglyph_index = j + done_glyphs;
Lisp_Object lglyph = LGSTRING_GLYPH (lgstring, lglyph_index);
ABC char_metric;
+ unsigned gl;
if (NILP (lglyph))
{
lglyph = Fmake_vector (make_number (LGLYPH_SIZE), Qnil);
LGSTRING_SET_GLYPH (lgstring, lglyph_index, lglyph);
}
- LGLYPH_SET_CODE (lglyph, glyphs[j]);
+ /* Copy to a 32-bit data type to shut up the
+ compiler warning in LGLYPH_SET_CODE about
+ comparison being always false. */
+ gl = glyphs[j];
+ LGLYPH_SET_CODE (lglyph, gl);
/* Detect clusters, for linking codes back to characters. */
if (attributes[j].fClusterStart)