gdbus-codegen: Fix -Wconversion warning

https://bugzilla.gnome.org/show_bug.cgi?id=778581
This commit is contained in:
Patrick Griffis 2017-02-13 21:52:28 -05:00
parent 442d64ba94
commit 79c08255be

View File

@ -1710,8 +1710,8 @@ class CodeGenerator:
' GVariantIter iter;\n'
' GVariant *child;\n'
' GValue *paramv;\n'
' guint num_params;\n'
' guint n;\n'
' gsize num_params;\n'
' gsize n;\n'
' guint signal_id;\n');
# Note: info could be NULL if we are talking to a newer version of the interface
self.c.write(' info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_%s_interface_info.parent_struct, signal_name);\n'
@ -2130,9 +2130,9 @@ class CodeGenerator:
' GVariantIter iter;\n'
' GVariant *child;\n'
' GValue *paramv;\n'
' guint num_params;\n'
' gsize num_params;\n'
' guint num_extra;\n'
' guint n;\n'
' gsize n;\n'
' guint signal_id;\n'
' GValue return_value = G_VALUE_INIT;\n'
%(i.name_lower, i.camel_name, i.ns_upper, i.name_upper))