diff options
author | John Wiegley <johnw@newartisans.com> | 2012-02-10 20:09:38 -1000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-02-17 15:09:33 -0600 |
commit | 7840bef10af204aa796a665bfb6be017d02de193 (patch) | |
tree | 8079922f3586beb2d44ebd5f201cab938938258f /src/error.cc | |
parent | c90027eef97abfc41938daee5f5110d8ecdd6689 (diff) | |
download | fork-ledger-7840bef10af204aa796a665bfb6be017d02de193.tar.gz fork-ledger-7840bef10af204aa796a665bfb6be017d02de193.tar.bz2 fork-ledger-7840bef10af204aa796a665bfb6be017d02de193.zip |
Corrected the type of a cast
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 542d12b9..88adfbdb 100644 --- a/src/error.cc +++ b/src/error.cc @@ -100,7 +100,7 @@ string source_context(const path& file, scoped_array<char> buf(new char[static_cast<std::size_t>(len) + 1]); in.read(buf.get(), static_cast<std::streamsize>(len)); assert(in.gcount() == static_cast<std::streamsize>(len)); - buf[static_cast<std::size_t>(len)] = '\0'; + buf[static_cast<std::ptrdiff_t>(len)] = '\0'; bool first = true; for (char * p = std::strtok(buf.get(), "\n"); |