summaryrefslogtreecommitdiffstats
path: root/src/debug/timestamp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/debug/timestamp.cpp')
-rw-r--r--src/debug/timestamp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/debug/timestamp.cpp b/src/debug/timestamp.cpp
index 1c6269756..8814f37ad 100644
--- a/src/debug/timestamp.cpp
+++ b/src/debug/timestamp.cpp
@@ -23,7 +23,7 @@ Util::ptr_shared<char> timestamp() {
Util::ptr_shared<char> result;
GTimeVal timestamp;
g_get_current_time(&timestamp);
- gchar *value = g_strdup_printf("%d.%06d", timestamp.tv_sec, timestamp.tv_usec);
+ gchar *value = g_strdup_printf( "%d.%06d", static_cast<gint>(timestamp.tv_sec), static_cast<gint>(timestamp.tv_usec) );
result = Util::share_string(value);
g_free(value);
return result;