summaryrefslogtreecommitdiff
path: root/xsd-examples/cxx/parser/performance/driver.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/parser/performance/driver.cxx
parent5e527213a2430bb3018e5eebd909aef294edf9b5 (diff)
Various fixes
Diffstat (limited to 'xsd-examples/cxx/parser/performance/driver.cxx')
-rw-r--r--xsd-examples/cxx/parser/performance/driver.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/xsd-examples/cxx/parser/performance/driver.cxx b/xsd-examples/cxx/parser/performance/driver.cxx
index 4ac0265..6e0ae5d 100644
--- a/xsd-examples/cxx/parser/performance/driver.cxx
+++ b/xsd-examples/cxx/parser/performance/driver.cxx
@@ -302,7 +302,7 @@ main (int argc, char* argv[])
root_p.pre ();
doc.parse_begin (xml_parser, public_id);
- XML_Parse (xml_parser, buf, size, 1);
+ XML_Parse (xml_parser, buf, static_cast <int> (size), 1);
doc.parse_end ();
root_p.post_root ();
@@ -321,7 +321,8 @@ main (int argc, char* argv[])
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.
//