diff options
| author | Eli Zaretskii | 2011-08-30 21:15:53 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2011-08-30 21:15:53 +0300 |
| commit | f6cfbd8f9d86e64b60d932ef098f4aa59305d196 (patch) | |
| tree | 79c830934c20d25ad16b84a6291ea477d96103d0 | |
| parent | 148ae00e30c1b6132f3a237ce1d4ddd25094ab6b (diff) | |
| download | emacs-f6cfbd8f9d86e64b60d932ef098f4aa59305d196.tar.gz emacs-f6cfbd8f9d86e64b60d932ef098f4aa59305d196.zip | |
src/image.c (x_bitmap_pixmap): Cast to int to avoid compiler warnings.
| -rw-r--r-- | src/ChangeLog | 2 | ||||
| -rw-r--r-- | src/image.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index dcf4da4c363..e0f2ad096be 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2011-08-30 Eli Zaretskii <eliz@gnu.org> | 1 | 2011-08-30 Eli Zaretskii <eliz@gnu.org> |
| 2 | 2 | ||
| 3 | * image.c (x_bitmap_pixmap): Cast to int to avoid compiler warnings. | ||
| 4 | |||
| 3 | * xdisp.c (produce_stretch_glyph): No longer static, compiled also | 5 | * xdisp.c (produce_stretch_glyph): No longer static, compiled also |
| 4 | when HAVE_WINDOW_SYSTEM is not defined. Support both GUI and TTY | 6 | when HAVE_WINDOW_SYSTEM is not defined. Support both GUI and TTY |
| 5 | frames. Call tty_append_glyph in the TTY case. (Bug#9402) | 7 | frames. Call tty_append_glyph in the TTY case. (Bug#9402) |
diff --git a/src/image.c b/src/image.c index d6bfc4050ca..c5dcbb32e5d 100644 --- a/src/image.c +++ b/src/image.c | |||
| @@ -196,7 +196,8 @@ x_bitmap_width (FRAME_PTR f, ptrdiff_t id) | |||
| 196 | int | 196 | int |
| 197 | x_bitmap_pixmap (FRAME_PTR f, ptrdiff_t id) | 197 | x_bitmap_pixmap (FRAME_PTR f, ptrdiff_t id) |
| 198 | { | 198 | { |
| 199 | return FRAME_X_DISPLAY_INFO (f)->bitmaps[id - 1].pixmap; | 199 | /* HAVE_NTGUI needs the explicit cast here. */ |
| 200 | return (int) FRAME_X_DISPLAY_INFO (f)->bitmaps[id - 1].pixmap; | ||
| 200 | } | 201 | } |
| 201 | #endif | 202 | #endif |
| 202 | 203 | ||