Browse Source

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

We perform error checking on the stream after reading so this conversion
is safe.
Brad King 14 years ago
parent
commit
4268e3d7e9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Tests/CMakeLib/run_compile_commands.cxx

+ 1 - 1
Tests/CMakeLib/run_compile_commands.cxx

@@ -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.");
   }