[gimp] Issue #8649: fix "incompatible pointer to integer conversion".



commit a93249fa65c699749d21f32ad7d71d74c149b782
Author: Jehan <jehan girinstud io>
Date:   Wed Sep 28 22:34:05 2022 +0200

    Issue #8649: fix "incompatible pointer to integer conversion".
    
    Since Clang 15.0.0:
    
    > The -Wint-conversion warning diagnostic for implicit int <-> pointer
    > conversions now defaults to an error in all C language modes. It may be
    > downgraded to a warning with -Wno-error=int-conversion, or disabled entirely
    > with -Wno-int-conversion.

 libgimp/gimpprogressbar.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libgimp/gimpprogressbar.c b/libgimp/gimpprogressbar.c
index 063413c5ba..e026854dbe 100644
--- a/libgimp/gimpprogressbar.c
+++ b/libgimp/gimpprogressbar.c
@@ -193,12 +193,12 @@ gimp_window_get_native_id (GtkWindow *window)
 
 #ifdef GDK_WINDOWING_WIN32
   if (GDK_IS_WIN32_WINDOW (surface))
-    return GDK_WINDOW_HWND (gtk_widget_get_window (GTK_WIDGET (window)));
+    return GPOINTER_TO_INT (GDK_WINDOW_HWND (gtk_widget_get_window (GTK_WIDGET (window))));
 #endif
 
 #ifdef GDK_WINDOWING_X11
   if (GDK_IS_X11_WINDOW (surface))
-    return GDK_WINDOW_XID (gtk_widget_get_window (GTK_WIDGET (window)));
+    return GPOINTER_TO_INT (GDK_WINDOW_XID (gtk_widget_get_window (GTK_WIDGET (window))));
 #endif
 
 #ifdef GDK_WINDOWING_WAYLAND


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]