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 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/error.cc') 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'; -- cgit v1.2.3