diff options
Diffstat (limited to 'src/error.cc')
-rw-r--r-- | src/error.cc | 2 |
1 files changed, 1 insertions, 1 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<char> buf(new char[len + 1]); - in.read(buf.get(), len); + in.read(buf.get(), static_cast<std::streamsize>(len)); assert(in.gcount() == len); buf[len] = '\0'; |