From a88a4c55b2b11d58d3b9e49bf785be42afe63510 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 31 Oct 2009 00:43:16 -0400 Subject: Added a few more missing casts --- src/error.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/error.cc') diff --git a/src/error.cc b/src/error.cc index 63b9885c..d5abe4de 100644 --- a/src/error.cc +++ b/src/error.cc @@ -96,10 +96,10 @@ string source_context(const path& file, ifstream in(file); in.seekg(pos, std::ios::beg); - scoped_array buf(new char[len + 1]); + scoped_array buf(new char[static_cast(len) + 1]); in.read(buf.get(), static_cast(len)); - assert(in.gcount() == len); - buf[len] = '\0'; + assert(in.gcount() == static_cast(len)); + buf[static_cast(len)] = '\0'; bool first = true; for (char * p = std::strtok(buf.get(), "\n"); -- cgit v1.2.3