diff options
author | Bruno Manganelli <bruno.manga95@gmail.com> | 2018-12-24 12:11:26 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-01-09 13:25:10 (GMT) |
commit | 5bcfe98bd5215d8fc1638879c3ee92ca2c1383b8 (patch) | |
tree | a9108d3129ce6ee64c8a4603ae6f0c827a54a530 /Source/cmWriteFileCommand.cxx | |
parent | 70e245f19ec8e753784db6a1153c64e5f5eec16a (diff) | |
download | CMake-5bcfe98bd5215d8fc1638879c3ee92ca2c1383b8.zip CMake-5bcfe98bd5215d8fc1638879c3ee92ca2c1383b8.tar.gz CMake-5bcfe98bd5215d8fc1638879c3ee92ca2c1383b8.tar.bz2 |
Source: Fix various compiler warnings in Visual Studio 2017
Diffstat (limited to 'Source/cmWriteFileCommand.cxx')
-rw-r--r-- | Source/cmWriteFileCommand.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmWriteFileCommand.cxx b/Source/cmWriteFileCommand.cxx index c504ef4..49dbf1a 100644 --- a/Source/cmWriteFileCommand.cxx +++ b/Source/cmWriteFileCommand.cxx @@ -50,7 +50,7 @@ bool cmWriteFileCommand::InitialPass(std::vector<std::string> const& args, // Set permissions to writable if (cmSystemTools::GetPermissions(fileName.c_str(), mode)) { #if defined(_MSC_VER) || defined(__MINGW32__) - writable = mode & S_IWRITE; + writable = (mode & S_IWRITE) != 0; mode_t newMode = mode | S_IWRITE; #else writable = mode & S_IWUSR; |