From b9ec00c3349d03ab3c655efb28df73b305e0e8ec Mon Sep 17 00:00:00 2001 From: Bruno Lopes Date: Tue, 31 Mar 2026 11:01:35 -0300 Subject: [PATCH] libgimpbase, libgimpconfig: Fix some castings --- libgimpbase/gimpprotocol.c | 4 ++-- libgimpbase/gimputils.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libgimpbase/gimpprotocol.c b/libgimpbase/gimpprotocol.c index 0d501cc919..e88fa43251 100644 --- a/libgimpbase/gimpprotocol.c +++ b/libgimpbase/gimpprotocol.c @@ -1085,7 +1085,7 @@ _gp_param_def_read (GIOChannel *channel, gpointer user_data) { if (! _gimp_wire_read_int32 (channel, - ¶m_def->param_def_type, 1, + (guint32 *) ¶m_def->param_def_type, 1, user_data)) return FALSE; @@ -1470,7 +1470,7 @@ _gp_param_def_write (GIOChannel *channel, gpointer user_data) { if (! _gimp_wire_write_int32 (channel, - ¶m_def->param_def_type, 1, + (const guint32 *) ¶m_def->param_def_type, 1, user_data)) return FALSE; diff --git a/libgimpbase/gimputils.c b/libgimpbase/gimputils.c index 7c7847da91..b30a33b69c 100644 --- a/libgimpbase/gimputils.c +++ b/libgimpbase/gimputils.c @@ -407,7 +407,7 @@ gimp_file_show_in_file_manager (GFile *file, goto out; } - pidl = ILCreateFromPathW (w_filename); + pidl = (ITEMIDLIST *) ILCreateFromPathW (w_filename); if (!pidl) { g_set_error_literal (error, G_FILE_ERROR, 0,