aboutsummaryrefslogtreecommitdiffstats
path: root/src/image.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/image.c')
-rw-r--r--src/image.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/image.c b/src/image.c
index 7901b95f236..91eeb91920c 100644
--- a/src/image.c
+++ b/src/image.c
@@ -186,11 +186,11 @@ x_bitmap_width (FRAME_PTR f, ptrdiff_t id)
186} 186}
187 187
188#if defined (HAVE_X_WINDOWS) || defined (HAVE_NTGUI) 188#if defined (HAVE_X_WINDOWS) || defined (HAVE_NTGUI)
189int 189ptrdiff_t
190x_bitmap_pixmap (FRAME_PTR f, ptrdiff_t id) 190x_bitmap_pixmap (FRAME_PTR f, ptrdiff_t id)
191{ 191{
192 /* HAVE_NTGUI needs the explicit cast here. */ 192 /* HAVE_NTGUI needs the explicit cast here. */
193 return (int) FRAME_X_DISPLAY_INFO (f)->bitmaps[id - 1].pixmap; 193 return (ptrdiff_t) FRAME_X_DISPLAY_INFO (f)->bitmaps[id - 1].pixmap;
194} 194}
195#endif 195#endif
196 196