[libgweather/jjardon/G_GSIZE_FORMAT] libgweather/gweather-private.c: Use %G_GSIZE_FORMAT instead %li




commit afacceb7943d76fee503f3ee0ac14386ca77c9fe
Author: Javier Jardón <jjardon gnome org>
Date:   Tue Jan 4 02:06:30 2022 +0000

    libgweather/gweather-private.c: Use %G_GSIZE_FORMAT instead %li
    
    libgweather fails to build in i686 if not

 libgweather/gweather-private.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libgweather/gweather-private.c b/libgweather/gweather-private.c
index 6df95c87..524cb5ee 100644
--- a/libgweather/gweather-private.c
+++ b/libgweather/gweather-private.c
@@ -23,7 +23,7 @@ _gweather_location_reset_world (void)
     /* 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 %"G_GSIZE_FORMAT" 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 %"G_GSIZE_FORMAT" 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]