mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-05-17 11:11:58 +02:00
gobject: Fix a guint to gboolean conversion warning
Make the conversion explicit. Fixes some `-Wsign-conversion` warnings. Signed-off-by: Philip Withnall <pwithnall@gnome.org> Helps: #3405
This commit is contained in:
parent
636bbd1d63
commit
615cd4c10c
@ -3891,7 +3891,7 @@ g_object_is_floating (gpointer _object)
|
||||
{
|
||||
GObject *object = _object;
|
||||
g_return_val_if_fail (G_IS_OBJECT (object), FALSE);
|
||||
return floating_flag_handler (object, 0);
|
||||
return (floating_flag_handler (object, 0) != 0);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -3922,7 +3922,7 @@ gpointer
|
||||
g_return_val_if_fail (G_IS_OBJECT (object), object);
|
||||
g_return_val_if_fail (g_atomic_int_get (&object->ref_count) >= 1, object);
|
||||
g_object_ref (object);
|
||||
was_floating = floating_flag_handler (object, -1);
|
||||
was_floating = (floating_flag_handler (object, -1) != 0);
|
||||
if (was_floating)
|
||||
g_object_unref (object);
|
||||
return object;
|
||||
|
Loading…
x
Reference in New Issue
Block a user