From 4becc1f938bc474cfa657918a6d3d74b03978440 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 31 Oct 2009 00:14:17 -0400 Subject: Added two missing casts --- src/error.cc | 2 +- src/global.cc | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/error.cc b/src/error.cc index 70759b08..63b9885c 100644 --- a/src/error.cc +++ b/src/error.cc @@ -97,7 +97,7 @@ string source_context(const path& file, in.seekg(pos, std::ios::beg); scoped_array buf(new char[len + 1]); - in.read(buf.get(), len); + in.read(buf.get(), static_cast(len)); assert(in.gcount() == len); buf[len] = '\0'; diff --git a/src/global.cc b/src/global.cc index a26d4cd1..9ba2a357 100644 --- a/src/global.cc +++ b/src/global.cc @@ -543,7 +543,8 @@ void global_scope_t::normalize_report_options(const string& verb) if (! rep.HANDLER(date_width_).specified) rep.HANDLER(date_width_) - .on_with(none, format_date(CURRENT_DATE(), FMT_PRINTED).length()); + .on_with(none, static_cast(format_date(CURRENT_DATE(), + FMT_PRINTED).length())); long date_width = rep.HANDLER(date_width_).value.to_long(); long payee_width = (rep.HANDLER(payee_width_).specified ? -- cgit v1.2.3