summaryrefslogtreecommitdiff
blob: bafaa164a2d8479893c7cf7a4dbcea749a7601b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From f2d51cde0e72853050495b3d995db4aee14c66a6 Mon Sep 17 00:00:00 2001
From: Jan Schmidt <jan@centricular.com>
Date: Tue, 13 May 2014 14:30:34 -0400
Subject: ui: string concatenation to use corect format

---
 src/user_interface.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/user_interface.c b/src/user_interface.c
index c29c688..8e3894a 100644
--- a/src/user_interface.c
+++ b/src/user_interface.c
@@ -1052,9 +1052,9 @@ position_ns_to_str (UserInterface * ui, gint64 nanoseconds)
   seconds = seconds - (minutes * SEC_IN_MIN);
 
   if (hours >= 1)
-    return g_strdup_printf ("%d:%02d:%02ld", hours, minutes, seconds);
+    return g_strdup_printf ("%d:%02d:%02" G_GINT64_FORMAT, hours, minutes, seconds);
   else
-    return g_strdup_printf ("%02d:%02ld", minutes, seconds);
+    return g_strdup_printf ("%02d:%02" G_GINT64_FORMAT, minutes, seconds);
 }
 
 static void
-- 
cgit v0.11.2