summaryrefslogtreecommitdiff
path: root/src/error.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/error.cc')
-rw-r--r--src/error.cc3
1 files changed, 2 insertions, 1 deletions
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<char> buf(new char[len + 1]);
in.read(buf.get(), static_cast<int>(len));
- assert(static_cast<std::size_t>(in.gcount()) == len);
+ assert(static_cast<std::size_t>(in.gcount()) ==
+ static_cast<std::size_t>(len));
buf[static_cast<int>(len)] = '\0';
bool first = true;