diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2020-12-19 17:12:05 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2021-02-24 22:20:33 +0300 |
commit | fe18c518cf476ea5a2c3eede8bf6b994ec3105f2 (patch) | |
tree | 16f5ebb14ce1bd541412bf375ba5a44b5341c6b1 /xsd-examples/cxx/parser/performance/driver.cxx | |
parent | a8ce5c380c69539fe0c7c62c397634d9d0c9fde2 (diff) |
Various fixes
Diffstat (limited to 'xsd-examples/cxx/parser/performance/driver.cxx')
-rw-r--r-- | xsd-examples/cxx/parser/performance/driver.cxx | 5 |
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. // |