[glib] gdbus-codegen: Fix -Wconversion warning
- From: Patrick Griffis <pgriffis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gdbus-codegen: Fix -Wconversion warning
- Date: Tue, 14 Feb 2017 19:06:57 +0000 (UTC)
commit 79c08255bee04b65c3f48a877681872cc0d9fc1c
Author: Patrick Griffis <tingping tingping se>
Date: Mon Feb 13 21:52:28 2017 -0500
gdbus-codegen: Fix -Wconversion warning
https://bugzilla.gnome.org/show_bug.cgi?id=778581
gio/gdbus-2.0/codegen/codegen.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gio/gdbus-2.0/codegen/codegen.py b/gio/gdbus-2.0/codegen/codegen.py
index 09de619..6a3d9e5 100644
--- a/gio/gdbus-2.0/codegen/codegen.py
+++ b/gio/gdbus-2.0/codegen/codegen.py
@@ -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))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]