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 /src/image.c | |
| parent | 148ae00e30c1b6132f3a237ce1d4ddd25094ab6b (diff) | |
| download | emacs-f6cfbd8f9d86e64b60d932ef098f4aa59305d196.tar.gz emacs-f6cfbd8f9d86e64b60d932ef098f4aa59305d196.zip | |
src/image.c (x_bitmap_pixmap): Cast to int to avoid compiler warnings.
Diffstat (limited to 'src/image.c')
| -rw-r--r-- | src/image.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 | ||