From: Eli Zaretskii Date: Fri, 29 Aug 2008 08:41:52 +0000 (+0000) Subject: (uniscribe_shape): Shut up compiler warning in LGLYPH_SET_CODE. X-Git-Tag: emacs-pretest-23.0.90~3152 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4bf84f7d73ebe52de16916167b47063a89818e4a;p=emacs.git (uniscribe_shape): Shut up compiler warning in LGLYPH_SET_CODE. --- diff --git a/src/ChangeLog b/src/ChangeLog index bd3d2cc3a81..029a59b2cb8 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,12 @@ +2008-08-29 Eli Zaretskii + + * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h + + * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT. + + * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in + LGLYPH_SET_CODE. + 2008-08-29 Kenichi Handa * fileio.c (report_file_error): Don't downcase the first character 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)