From 14a7b2a4fec4e1eb7151996f3fdb94126e490a3b Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Tue, 16 Aug 2016 11:07:36 +0200 Subject: [PATCH] manager: add explicit cast for g_object_set() Technically, this is not needed because glib requires that int is at least 32 bits. Thus, uint32 will be safely promoted to uint. Just do the cast to be explict about the expected type. --- src/nm-manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nm-manager.c b/src/nm-manager.c index b8790d46aa..89dc736044 100644 --- a/src/nm-manager.c +++ b/src/nm-manager.c @@ -4920,7 +4920,7 @@ prop_set_auth_done_cb (NMAuthChain *chain, } else if (!strcmp (pfd->glib_propname, NM_DEVICE_STATISTICS_REFRESH_RATE_MS)) { g_assert (g_variant_is_of_type (value, G_VARIANT_TYPE_UINT32)); /* the same here */ - g_object_set (object, pfd->glib_propname, g_variant_get_uint32 (value), NULL); + g_object_set (object, pfd->glib_propname, (guint) g_variant_get_uint32 (value), NULL); } else { g_assert (g_variant_is_of_type (value, G_VARIANT_TYPE_BOOLEAN)); /* the same here */