소스 검색

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 년 전
부모
커밋
4268e3d7e9
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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.");
   }