summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-07-14 08:01:55 -0400
committerBrad King <brad.king@kitware.com>2017-07-14 08:01:55 -0400
commit13e9a370d9567d68120396b785c5d9e91a7cc5b8 (patch)
tree5ecc0db10bdd7ba860c1c6423ee2609d8e00700c
parent9d9085ab3614fa36d8b3e7e337468b53ae646b82 (diff)
parent221ffabfad9ed61c6c1aed8b53e5402a943477bd (diff)
downloadcmake-13e9a370d9567d68120396b785c5d9e91a7cc5b8.tar.gz
Merge branch 'TestDriver-fix-Wconversion' into release-3.9
-rw-r--r--Templates/TestDriver.cxx.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/Templates/TestDriver.cxx.in b/Templates/TestDriver.cxx.in
index 0d3f44f28e..bf61be4c9b 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) */