summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2017-08-30 10:37:36 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-08-30 10:38:00 (GMT)
commit7ddd43183dadba9c42094540f3371dd38054bc12 (patch)
tree7f048ea2e1a75569eb5472c238389acfc768995e /Tests
parent5cac887297e58efe9553d7aa2bca9139f84bf094 (diff)
parent190e3825d44d4f846d37e1ec7372f5829a5b6b3e (diff)
downloadCMake-7ddd43183dadba9c42094540f3371dd38054bc12.zip
CMake-7ddd43183dadba9c42094540f3371dd38054bc12.tar.gz
CMake-7ddd43183dadba9c42094540f3371dd38054bc12.tar.bz2
Merge topic 'cstyle-casts'
190e3825 Replace C-style casts Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1176
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CMakeLib/testUTF8.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/Tests/CMakeLib/testUTF8.cxx b/Tests/CMakeLib/testUTF8.cxx
index fb5f3d8..c99c46d 100644
--- a/Tests/CMakeLib/testUTF8.cxx
+++ b/Tests/CMakeLib/testUTF8.cxx
@@ -8,8 +8,9 @@ typedef char test_utf8_char[5];
static void test_utf8_char_print(test_utf8_char const c)
{
unsigned char const* d = reinterpret_cast<unsigned char const*>(c);
- printf("[0x%02X,0x%02X,0x%02X,0x%02X]", (int)d[0], (int)d[1], (int)d[2],
- (int)d[3]);
+ printf("[0x%02X,0x%02X,0x%02X,0x%02X]", static_cast<int>(d[0]),
+ static_cast<int>(d[1]), static_cast<int>(d[2]),
+ static_cast<int>(d[3]));
}
struct test_utf8_entry