mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 03:30:09 +01:00
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.
This commit is contained in:
parent
36f8ffad9f
commit
14a7b2a4fe
1 changed files with 1 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue