[gnome-software/gnome-3-20] trivial: Use correct format string for gint64



commit 7bd55a69e3727b8b27f8dd27617e17ee8a4db177
Author: Robert Ancell <robert ancell canonical com>
Date:   Wed Mar 2 16:49:54 2016 +1300

    trivial: Use correct format string for gint64

 src/plugins/gs-plugin-ubuntu-reviews.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-plugin-ubuntu-reviews.c b/src/plugins/gs-plugin-ubuntu-reviews.c
index 476eee6..d40683a 100644
--- a/src/plugins/gs-plugin-ubuntu-reviews.c
+++ b/src/plugins/gs-plugin-ubuntu-reviews.c
@@ -519,7 +519,7 @@ parse_review (JsonNode *node)
        if (star_rating > 0)
                gs_review_set_rating (review, star_rating * 20);
        gs_review_set_date (review, parse_date_time (json_object_get_string_member (object, "date_created")));
-       id_string = g_strdup_printf ("%ld", json_object_get_int_member (object, "id"));
+       id_string = g_strdup_printf ("%" G_GINT64_FORMAT, json_object_get_int_member (object, "id"));
        gs_review_add_metadata (review, "ubuntu-id", id_string);
 
        return review;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]