summaryrefslogtreecommitdiff
path: root/xsd-examples/cxx/tree/performance/serialization.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xsd-examples/cxx/tree/performance/serialization.cxx')
-rw-r--r--xsd-examples/cxx/tree/performance/serialization.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/xsd-examples/cxx/tree/performance/serialization.cxx b/xsd-examples/cxx/tree/performance/serialization.cxx
index e81fcbd..e691b82 100644
--- a/xsd-examples/cxx/tree/performance/serialization.cxx
+++ b/xsd-examples/cxx/tree/performance/serialization.cxx
@@ -105,7 +105,8 @@ serialization (const char* file, unsigned long iter)
cerr << " time: " << time << " sec" << endl;
- double ms (time.sec () * 1000000ULL + time.nsec () / 1000ULL);
+ double ms (static_cast<double> (
+ time.sec () * 1000000ULL + time.nsec () / 1000ULL));
// Calculate throughput in documents/sec.
//