[gimp] libgimp: fix a type cast warning (win32).
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] libgimp: fix a type cast warning (win32).
- Date: Thu, 10 Oct 2019 12:17:07 +0000 (UTC)
commit cf6dae6f83da514d3ddd85aaf342f95579817b2c
Author: Jehan <jehan girinstud io>
Date: Thu Oct 10 14:13:49 2019 +0200
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'}
libgimp/gimpui.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/libgimp/gimpui.c b/libgimp/gimpui.c
index 70dbd2b3b5..5febb0df5b 100644
--- a/libgimp/gimpui.c
+++ b/libgimp/gimpui.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]