aboutsummaryrefslogtreecommitdiffstats
path: root/src/image.c
diff options
context:
space:
mode:
authorEli Zaretskii2011-08-30 21:15:53 +0300
committerEli Zaretskii2011-08-30 21:15:53 +0300
commitf6cfbd8f9d86e64b60d932ef098f4aa59305d196 (patch)
tree79c830934c20d25ad16b84a6291ea477d96103d0 /src/image.c
parent148ae00e30c1b6132f3a237ce1d4ddd25094ab6b (diff)
downloademacs-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.c3
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)
196int 196int
197x_bitmap_pixmap (FRAME_PTR f, ptrdiff_t id) 197x_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