[libgweather/jjardon/G_GSIZE_FORMAT] libgweather/gweather-private.c: Fix compilation in i686; Use guint instead gsize
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgweather/jjardon/G_GSIZE_FORMAT] libgweather/gweather-private.c: Fix compilation in i686; Use guint instead gsize
- Date: Tue, 4 Jan 2022 02:37:23 +0000 (UTC)
commit 4efaf140c9a7b05af0dbd6c2ab7132aa953754e9
Author: Javier Jardón <jjardon gnome org>
Date: Tue Jan 4 02:32:58 2022 +0000
libgweather/gweather-private.c: Fix compilation in i686; Use guint instead gsize
From https://docs.gtk.org/glib/struct.PtrArray.html, seems the
"len" parameter in the GPtrArray struct is a guint
libgweather/gweather-private.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libgweather/gweather-private.c b/libgweather/gweather-private.c
index 6df95c87..2f95d699 100644
--- a/libgweather/gweather-private.c
+++ b/libgweather/gweather-private.c
@@ -16,14 +16,14 @@ static GWeatherDb *world_db;
void
_gweather_location_reset_world (void)
{
- gsize i;
+ guint i;
g_return_if_fail (world_db != NULL);
/* At this point, we had a leak if the caches are not completely empty. */
for (i = 0; i < world_db->locations->len; i++) {
if (G_UNLIKELY (g_ptr_array_index (world_db->locations, i) != NULL)) {
- g_warning ("Location with index %li and name %s is still referenced!",
+ g_warning ("Location with index %u and name %s is still referenced!",
i,
gweather_location_get_name (g_ptr_array_index (world_db->locations, i)));
g_assert_not_reached ();
@@ -31,7 +31,7 @@ _gweather_location_reset_world (void)
}
for (i = 0; i < world_db->timezones->len; i++) {
if (G_UNLIKELY (g_ptr_array_index (world_db->timezones, i) != NULL)) {
- g_warning ("Timezone with index %li and tzid %s is still referenced!",
+ g_warning ("Timezone with index %u and tzid %s is still referenced!",
i,
g_time_zone_get_identifier (g_ptr_array_index (world_db->timezones, i)));
g_assert_not_reached ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]