diff options
| author | Eli Zaretskii | 2008-08-29 08:41:52 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2008-08-29 08:41:52 +0000 |
| commit | 4bf84f7d73ebe52de16916167b47063a89818e4a (patch) | |
| tree | 1c3cafc737d482deb1c0202bcd4037a1032c7bb9 /src | |
| parent | 19ac20343f9a061576619ec1a978060f265e4283 (diff) | |
| download | emacs-4bf84f7d73ebe52de16916167b47063a89818e4a.tar.gz emacs-4bf84f7d73ebe52de16916167b47063a89818e4a.zip | |
(uniscribe_shape): Shut up compiler warning in LGLYPH_SET_CODE.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 9 | ||||
| -rw-r--r-- | src/w32uniscribe.c | 7 |
2 files changed, 15 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index bd3d2cc3a81..029a59b2cb8 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2008-08-29 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h | ||
| 4 | |||
| 5 | * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT. | ||
| 6 | |||
| 7 | * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in | ||
| 8 | LGLYPH_SET_CODE. | ||
| 9 | |||
| 1 | 2008-08-29 Kenichi Handa <handa@m17n.org> | 10 | 2008-08-29 Kenichi Handa <handa@m17n.org> |
| 2 | 11 | ||
| 3 | * fileio.c (report_file_error): Don't downcase the first character | 12 | * 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) | |||
| 339 | int lglyph_index = j + done_glyphs; | 339 | int lglyph_index = j + done_glyphs; |
| 340 | Lisp_Object lglyph = LGSTRING_GLYPH (lgstring, lglyph_index); | 340 | Lisp_Object lglyph = LGSTRING_GLYPH (lgstring, lglyph_index); |
| 341 | ABC char_metric; | 341 | ABC char_metric; |
| 342 | unsigned gl; | ||
| 342 | 343 | ||
| 343 | if (NILP (lglyph)) | 344 | if (NILP (lglyph)) |
| 344 | { | 345 | { |
| 345 | lglyph = Fmake_vector (make_number (LGLYPH_SIZE), Qnil); | 346 | lglyph = Fmake_vector (make_number (LGLYPH_SIZE), Qnil); |
| 346 | LGSTRING_SET_GLYPH (lgstring, lglyph_index, lglyph); | 347 | LGSTRING_SET_GLYPH (lgstring, lglyph_index, lglyph); |
| 347 | } | 348 | } |
| 348 | LGLYPH_SET_CODE (lglyph, glyphs[j]); | 349 | /* Copy to a 32-bit data type to shut up the |
| 350 | compiler warning in LGLYPH_SET_CODE about | ||
| 351 | comparison being always false. */ | ||
| 352 | gl = glyphs[j]; | ||
| 353 | LGLYPH_SET_CODE (lglyph, gl); | ||
| 349 | 354 | ||
| 350 | /* Detect clusters, for linking codes back to characters. */ | 355 | /* Detect clusters, for linking codes back to characters. */ |
| 351 | if (attributes[j].fClusterStart) | 356 | if (attributes[j].fClusterStart) |