From 475014a14be8a1ee4a82075113f8ca11ceca9f5b Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 9 Oct 2009 19:50:23 -0400 Subject: Added some missing casts, upgraded to Boost 1.40 --- src/error.cc | 3 ++- src/times.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/error.cc b/src/error.cc index 9a654ccc..54d17ad3 100644 --- a/src/error.cc +++ b/src/error.cc @@ -98,7 +98,8 @@ string source_context(const path& file, scoped_array buf(new char[len + 1]); in.read(buf.get(), static_cast(len)); - assert(static_cast(in.gcount()) == len); + assert(static_cast(in.gcount()) == + static_cast(len)); buf[static_cast(len)] = '\0'; bool first = true; diff --git a/src/times.h b/src/times.h index 141066a5..1ff98325 100644 --- a/src/times.h +++ b/src/times.h @@ -110,7 +110,7 @@ inline std::string format_datetime(const datetime_t& when, const optional& format = none) { char buf[256]; - time_t moment = to_time_t(when); + std::time_t moment = to_time_t(when); std::strftime(buf, 255, format ? format->c_str() : output_datetime_format.c_str(), std::localtime(&moment)); return buf; -- cgit v1.2.3