From b7b4c079266e0e9ef18dbe006a4a135643cf890b Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 8 Jun 2007 04:13:20 +0000 Subject: r384@user1022: johnw | 2007-06-08 00:08:53 -0400 Corrected several minor warnings --- src/driver/report.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/driver') diff --git a/src/driver/report.cc b/src/driver/report.cc index ee3382da..0404adc7 100644 --- a/src/driver/report.cc +++ b/src/driver/report.cc @@ -59,13 +59,14 @@ value_t report_t::abbrev(xml::xpath_t::call_scope_t& args) elision_style_t style = session.elision_style; if (args.size() == 3) - style = (elision_style_t)args[2].as_long(); + style = static_cast(args[2].as_long()); long abbrev_len = session.abbrev_length; if (args.size() == 4) abbrev_len = args[3].as_long(); - return value_t(abbreviate(str, wid, style, true, (int)abbrev_len), true); + return value_t(abbreviate(str, wid, style, true, + static_cast(abbrev_len)), true); } value_t report_t::ftime(xml::xpath_t::call_scope_t& args) -- cgit v1.2.3