summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ac612c2)
raw | patch | inline | side by side (parent: ac612c2)
author | joncruz <joncruz@users.sourceforge.net> | |
Fri, 11 May 2007 18:00:10 +0000 (18:00 +0000) | ||
committer | joncruz <joncruz@users.sourceforge.net> | |
Fri, 11 May 2007 18:00:10 +0000 (18:00 +0000) |
src/debug/timestamp.cpp | patch | blob | history |
index 1c626975636ac40be35c5d54e592f0c006056bc7..8814f37ad0fec6df6f225dc9ed30d7bc93b456fc 100644 (file)
--- a/src/debug/timestamp.cpp
+++ b/src/debug/timestamp.cpp
Util::ptr_shared<char> result;
GTimeVal timestamp;
g_get_current_time(×tamp);
- 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;