diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2014-11-13 18:28:08 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2014-11-13 18:28:08 (GMT) |
commit | b138be07b4b2258a3c64245cdf13a4d7cc05b977 (patch) | |
tree | 3be19626314dfbc6f0444db6d0ab963c9661dd84 /Source/cmVisualStudio10TargetGenerator.cxx | |
parent | 8d379cd7ac25481ef3b43da12aade24b1e47ccdf (diff) | |
download | CMake-b138be07b4b2258a3c64245cdf13a4d7cc05b977.zip CMake-b138be07b4b2258a3c64245cdf13a4d7cc05b977.tar.gz CMake-b138be07b4b2258a3c64245cdf13a4d7cc05b977.tar.bz2 |
cmVisualStudio10TargetGenerator: fix a narrowing warning
0xAA literals are integers which doesn't fit into a char array. C++11
says this is an error and VS2015 now warns about it.
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r-- | Source/cmVisualStudio10TargetGenerator.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx index 26fc317..17a36d4 100644 --- a/Source/cmVisualStudio10TargetGenerator.cxx +++ b/Source/cmVisualStudio10TargetGenerator.cxx @@ -307,7 +307,7 @@ void cmVisualStudio10TargetGenerator::Generate() this->BuildFileStream->SetCopyIfDifferent(true); // Write the encoding header into the file - char magic[] = {0xEF,0xBB, 0xBF}; + char magic[] = {char(0xEF), char(0xBB), char(0xBF)}; this->BuildFileStream->write(magic, 3); //get the tools version to use @@ -937,7 +937,7 @@ void cmVisualStudio10TargetGenerator::WriteGroups() path += ".vcxproj.filters"; cmGeneratedFileStream fout(path.c_str()); fout.SetCopyIfDifferent(true); - char magic[] = {0xEF,0xBB, 0xBF}; + char magic[] = {char(0xEF), char(0xBB), char(0xBF)}; fout.write(magic, 3); cmGeneratedFileStream* save = this->BuildFileStream; this->BuildFileStream = & fout; |