Corrected the type of a cast
This commit is contained in:
parent
c90027eef9
commit
7840bef10a
1 changed files with 1 additions and 1 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue