From 4268e3d7e92eee0871dac1b92f64e18c374c7b43 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 19 May 2011 08:02:21 -0400 Subject: [PATCH] run_compile_commands: Cast istream::get() result to char We perform error checking on the stream after reading so this conversion is safe. --- Tests/CMakeLib/run_compile_commands.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/CMakeLib/run_compile_commands.cxx b/Tests/CMakeLib/run_compile_commands.cxx index a0be2eb63..3f141c537 100644 --- a/Tests/CMakeLib/run_compile_commands.cxx +++ b/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."); }