summaryrefslogtreecommitdiffstats
path: root/src/debug
diff options
context:
space:
mode:
authorJon A. Cruz <jon@joncruz.org>2007-05-11 18:00:10 +0000
committerjoncruz <joncruz@users.sourceforge.net>2007-05-11 18:00:10 +0000
commitba190d85d605c8368a8fe729be250c7c19664b6e (patch)
tree665c95762d73ee1bf7d5e005b819601501dd14e9 /src/debug
parentfixed crash when parameter viewbox=null in nr_path_matrix_point_bbox_wind_dis... (diff)
downloadinkscape-ba190d85d605c8368a8fe729be250c7c19664b6e.tar.gz
inkscape-ba190d85d605c8368a8fe729be250c7c19664b6e.zip
Fixing compile warnings
(bzr r2999)
Diffstat (limited to 'src/debug')
-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;