diff --git a/gobject/gobject.c b/gobject/gobject.c index c6fef8282..518285de0 100644 --- a/gobject/gobject.c +++ b/gobject/gobject.c @@ -4859,7 +4859,7 @@ g_object_compat_control (gsize what, { gpointer *pp; case 1: /* floating base type */ - return G_TYPE_INITIALLY_UNOWNED; + return (gsize) G_TYPE_INITIALLY_UNOWNED; case 2: /* FIXME: remove this once GLib/Gtk+ break ABI again */ floating_flag_handler = (guint(*)(GObject*,gint)) data; return 1; diff --git a/gobject/gparam.c b/gobject/gparam.c index 00d8b7742..9af9e9b33 100644 --- a/gobject/gparam.c +++ b/gobject/gparam.c @@ -955,7 +955,7 @@ param_spec_pool_hash (gconstpointer key_spec) { const GParamSpec *key = key_spec; const gchar *p; - guint h = key->owner_type; + guint h = (guint) key->owner_type; for (p = key->name; *p; p++) h = (h << 5) - h + *p;