summaryrefslogtreecommitdiff
path: root/xsd-examples/cxx/tree/performance/serialization.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-12-19 17:12:05 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2021-02-25 13:45:49 +0300
commitfea8db080353e408a38ad9b66b50b1c9dfaf96de (patch)
tree19c060eb9d6b66104f3bff3e5ea940dd7441c74d /xsd-examples/cxx/tree/performance/serialization.cxx
parent5e527213a2430bb3018e5eebd909aef294edf9b5 (diff)
Various fixes
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.
//