summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeLib
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2011-05-19 12:02:21 (GMT)
committerBrad King <brad.king@kitware.com>2011-05-19 12:02:21 (GMT)
commit4268e3d7e92eee0871dac1b92f64e18c374c7b43 (patch)
tree36ac4dbd7c81e0f934212383039fcb9e2c1472d8 /Tests/CMakeLib
parentc45c60b24ff52d9435ceab0de027fbadac130a1f (diff)
downloadCMake-4268e3d7e92eee0871dac1b92f64e18c374c7b43.zip
CMake-4268e3d7e92eee0871dac1b92f64e18c374c7b43.tar.gz
CMake-4268e3d7e92eee0871dac1b92f64e18c374c7b43.tar.bz2
run_compile_commands: Cast istream::get() result to char
We perform error checking on the stream after reading so this conversion is safe.
Diffstat (limited to 'Tests/CMakeLib')
-rw-r--r--Tests/CMakeLib/run_compile_commands.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/CMakeLib/run_compile_commands.cxx b/Tests/CMakeLib/run_compile_commands.cxx
index a0be2eb..3f141c5 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.");
}