diff options
author | Brad King <brad.king@kitware.com> | 2017-07-17 14:26:33 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2017-07-17 14:27:03 (GMT) |
commit | 94d387a970d628c14ffcbd9e6435e5a3efe94280 (patch) | |
tree | f313c2ac29d350012cfe7e9aff7e8c9c3a8c56d6 | |
parent | 8ff5aeb7cb7004e48a3cb2f3524b368b77db3075 (diff) | |
parent | 221ffabfad9ed61c6c1aed8b53e5402a943477bd (diff) | |
download | CMake-94d387a970d628c14ffcbd9e6435e5a3efe94280.zip CMake-94d387a970d628c14ffcbd9e6435e5a3efe94280.tar.gz CMake-94d387a970d628c14ffcbd9e6435e5a3efe94280.tar.bz2 |
Merge topic 'TestDriver-fix-Wconversion'
221ffabf TestDriver: Fix -Wconversion warning
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1058
-rw-r--r-- | Templates/TestDriver.cxx.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Templates/TestDriver.cxx.in b/Templates/TestDriver.cxx.in index 0d3f44f..bf61be4 100644 --- a/Templates/TestDriver.cxx.in +++ b/Templates/TestDriver.cxx.in @@ -32,8 +32,8 @@ static functionMapEntry cmakeGeneratedFunctionMapEntries[] = { { NULL, NULL } /* NOLINT */ }; -static const int NumTests = - (sizeof(cmakeGeneratedFunctionMapEntries) / sizeof(functionMapEntry)) - 1; +static const int NumTests = CM_CAST(int, + sizeof(cmakeGeneratedFunctionMapEntries) / sizeof(functionMapEntry)) - 1; /* Allocate and create a lowercased copy of string (note that it has to be free'd manually) */ |