[libdmapsharing] tests: Fix compilation due to wrong formats



commit 3460b7c7bb53f81c4901dee356bf44b82f1208d9
Author: Bastien Nocera <hadess hadess net>
Date:   Fri May 20 16:22:54 2016 +0200

    tests: Fix compilation due to wrong formats
    
    On a 64-bit system, with gcc 6.0:
    format ‘%lld’ expects argument of type ‘long long int’, but argument 4
    has type ‘gint64 {aka long int}’
    
    https://bugzilla.gnome.org/show_bug.cgi?id=766721
    
    Signed-off-by: W. Michael Petullo <mike flyn org>

 tests/dmapcopy.vala |    2 +-
 tests/dpapview.vala |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/dmapcopy.vala b/tests/dmapcopy.vala
index 190ac39..434bc04 100644
--- a/tests/dmapcopy.vala
+++ b/tests/dmapcopy.vala
@@ -27,7 +27,7 @@ private class DPAPCopy {
        private ValaDPAPRecordFactory factory;
 
        private bool connected_cb (DMAP.Connection connection, bool result, string? reason) {
-               GLib.debug ("%lld entries\n", db.count ());
+               GLib.debug ("%" + int64.FORMAT + " entries\n", db.count ());
 
                db.foreach ((k, v) => {
 
diff --git a/tests/dpapview.vala b/tests/dpapview.vala
index b7bdad0..3e8901a 100644
--- a/tests/dpapview.vala
+++ b/tests/dpapview.vala
@@ -28,7 +28,7 @@ private class DPAPViewer {
        private ValaDPAPRecordFactory factory;
 
        private bool connected_cb (DMAP.Connection connection, bool result, string? reason) {
-               GLib.debug ("%lld entries\n", db.count ());
+               GLib.debug ("%" + int64.FORMAT + " entries\n", db.count ());
 
                db.foreach ((k, v) => {
                        Gdk.Pixbuf pixbuf = null;


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