diff options
author | Brad King <brad.king@kitware.com> | 2011-05-19 12:02:21 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2011-05-19 12:02:21 (GMT) |
commit | 4268e3d7e92eee0871dac1b92f64e18c374c7b43 (patch) | |
tree | 36ac4dbd7c81e0f934212383039fcb9e2c1472d8 /Tests/CMakeLib | |
parent | c45c60b24ff52d9435ceab0de027fbadac130a1f (diff) | |
download | CMake-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.cxx | 2 |
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."); } |