From 4f49e799327b55be29028c392a8a8ee4ed921c83 Mon Sep 17 00:00:00 2001 From: Alan Fitton Date: Tue, 20 Sep 2011 07:27:32 +0000 Subject: use the gint64 format specifier %li, not %ld (long). hopefully silence the last remaining compiler warnings that I've seen (only on 32bit). --- src/trg-stats-dialog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/trg-stats-dialog.c') diff --git a/src/trg-stats-dialog.c b/src/trg-stats-dialog.c index 98c8606..5f22cc2 100644 --- a/src/trg-stats-dialog.c +++ b/src/trg-stats-dialog.c @@ -145,9 +145,9 @@ static void update_int_stat(JsonObject * args, GtkTreeRowReference * rr, gchar session_val[32]; gchar cumulat_val[32]; - g_snprintf(session_val, sizeof(session_val), "%ld", + g_snprintf(session_val, sizeof(session_val), "%li", json_object_get_int_member(get_session_arg(args), jsonKey)); - g_snprintf(cumulat_val, sizeof(cumulat_val), "%ld", + g_snprintf(cumulat_val, sizeof(cumulat_val), "%li", json_object_get_int_member(get_cumulat_arg(args), jsonKey)); update_statistic(rr, session_val, cumulat_val); -- cgit v1.2.3