diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2018-04-05 11:30:44 +0200 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2018-04-05 11:30:44 +0200 |
commit | 5f961b426b9bd25956e5364770c71c34c414d4e6 (patch) | |
tree | 0328b383b91ba4be1e22e3f636bcd689cee0573d /gi/pygi-property.c | |
parent | 8b55a207cdb8a1ec5c1cdcce48f69d292192f9b7 (diff) | |
download | pygobject-5f961b426b9bd25956e5364770c71c34c414d4e6.tar.gz |
build: use -Wconversion -Wno-sign-conversion. Fixes #191
In some cases changing the type used was enough, in some others I just force
casted things as too many changes would be required and overflow unlikely
(for array marshalling the cache uses gssize while the marshalling code uses
garray and thus guint)
My hope is that having this enabled will improve things gradually with
future cleanups.
Diffstat (limited to 'gi/pygi-property.c')
-rw-r--r-- | gi/pygi-property.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gi/pygi-property.c b/gi/pygi-property.c index 18d10136..b2f36c67 100644 --- a/gi/pygi-property.c +++ b/gi/pygi-property.c @@ -33,7 +33,7 @@ static GIPropertyInfo * lookup_property_from_object_info (GIObjectInfo *info, const gchar *attr_name) { gssize n_infos; - gssize i; + gint i; n_infos = g_object_info_get_n_properties (info); for (i = 0; i < n_infos; i++) { @@ -57,7 +57,7 @@ lookup_property_from_interface_info (GIInterfaceInfo *info, const gchar *attr_name) { gssize n_infos; - gssize i; + gint i; n_infos = g_interface_info_get_n_properties (info); for (i = 0; i < n_infos; i++) { |