summaryrefslogtreecommitdiff
path: root/src/error.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-10-31 00:14:17 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-10-31 00:14:17 -0400
commit4becc1f938bc474cfa657918a6d3d74b03978440 (patch)
treeb0f550b931db8b2bd2b1a4a6ab01c01f11fb05bc /src/error.cc
parent7a299ec8a65a54b5ccdbcd19abac2cab0fce721c (diff)
downloadfork-ledger-4becc1f938bc474cfa657918a6d3d74b03978440.tar.gz
fork-ledger-4becc1f938bc474cfa657918a6d3d74b03978440.tar.bz2
fork-ledger-4becc1f938bc474cfa657918a6d3d74b03978440.zip
Added two missing casts
Diffstat (limited to 'src/error.cc')
-rw-r--r--src/error.cc2
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';