summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudioGeneratorOptions.cxx
diff options
context:
space:
mode:
authorBruno Manganelli <bruno.manga95@gmail.com>2018-12-24 12:11:26 (GMT)
committerBrad King <brad.king@kitware.com>2019-01-09 13:25:10 (GMT)
commit5bcfe98bd5215d8fc1638879c3ee92ca2c1383b8 (patch)
treea9108d3129ce6ee64c8a4603ae6f0c827a54a530 /Source/cmVisualStudioGeneratorOptions.cxx
parent70e245f19ec8e753784db6a1153c64e5f5eec16a (diff)
downloadCMake-5bcfe98bd5215d8fc1638879c3ee92ca2c1383b8.zip
CMake-5bcfe98bd5215d8fc1638879c3ee92ca2c1383b8.tar.gz
CMake-5bcfe98bd5215d8fc1638879c3ee92ca2c1383b8.tar.bz2
Source: Fix various compiler warnings in Visual Studio 2017
Diffstat (limited to 'Source/cmVisualStudioGeneratorOptions.cxx')
-rw-r--r--Source/cmVisualStudioGeneratorOptions.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmVisualStudioGeneratorOptions.cxx b/Source/cmVisualStudioGeneratorOptions.cxx
index 5d67dcf..afe9230 100644
--- a/Source/cmVisualStudioGeneratorOptions.cxx
+++ b/Source/cmVisualStudioGeneratorOptions.cxx
@@ -269,7 +269,7 @@ void cmVisualStudioGeneratorOptions::FixManifestUACFlags()
if (keyValue[1].front() == '\'' && keyValue[1].back() == '\'') {
keyValue[1] =
- keyValue[1].substr(1, std::max<int>(0, keyValue[1].size() - 2));
+ keyValue[1].substr(1, std::max(0, cm::isize(keyValue[1]) - 2));
}
if (keyValue[0] == "level") {