Code

Fixing compile warnings
authorjoncruz <joncruz@users.sourceforge.net>
Fri, 11 May 2007 18:00:10 +0000 (18:00 +0000)
committerjoncruz <joncruz@users.sourceforge.net>
Fri, 11 May 2007 18:00:10 +0000 (18:00 +0000)
src/debug/timestamp.cpp

index 1c626975636ac40be35c5d54e592f0c006056bc7..8814f37ad0fec6df6f225dc9ed30d7bc93b456fc 100644 (file)
@@ -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;