Mercurial > emacs
changeset 97848:d1e61da65cce
(uniscribe_shape): Shut up compiler warning in LGLYPH_SET_CODE.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Fri, 29 Aug 2008 08:40:58 +0000 |
parents | 2fb5b268febb |
children | e260797f3170 |
files | src/w32uniscribe.c |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/w32uniscribe.c Fri Aug 29 08:40:01 2008 +0000 +++ b/src/w32uniscribe.c Fri Aug 29 08:40:58 2008 +0000 @@ -339,13 +339,18 @@ 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)