libgimp: fix a type cast warning (win32).

I had this warning when cross-building for Windows 64-bit:

> libgimp/gimpui.c:187:52: warning: passing argument 2 of
> 'gdk_win32_window_foreign_new_for_display' makes pointer from integer
> without a cast [-Wint-conversion]

> note: expected 'HWND' {aka 'struct HWND__ *'} but argument is of type 'guint32' {aka 'unsigned int'}
This commit is contained in:
Jehan
2019-10-10 14:13:49 +02:00
parent f59b0db0c8
commit cf6dae6f83

View File

@ -184,7 +184,7 @@ gimp_ui_get_foreign_window (guint32 window)
#ifdef GDK_WINDOWING_WIN32
return gdk_win32_window_foreign_new_for_display (gdk_display_get_default (),
window);
(HWND) (uintptr_t) window);
#endif
return NULL;