run_compile_commands: Cast istream::get() result to char

We perform error checking on the stream after reading so this conversion
is safe.
This commit is contained in:
Brad King 2011-05-19 08:02:21 -04:00
parent c45c60b24f
commit 4268e3d7e9

View File

@ -96,7 +96,7 @@ private:
void Next()
{
this->C = Input->get();
this->C = char(Input->get());
if (this->Input->bad()) ErrorExit("Unexpected end of file.");
}