diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2017-08-23 09:41:23 +0200 |
---|---|---|
committer | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2017-08-27 09:58:46 +0200 |
commit | 190e3825d44d4f846d37e1ec7372f5829a5b6b3e (patch) | |
tree | 85605643bc6fcdcb455d5fe58469a08874ef8673 /Tests | |
parent | 2ade9a0264b7c8d4e97d9d820e8c1531f3d1a43c (diff) | |
download | cmake-190e3825d44d4f846d37e1ec7372f5829a5b6b3e.tar.gz |
Replace C-style casts
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/CMakeLib/testUTF8.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Tests/CMakeLib/testUTF8.cxx b/Tests/CMakeLib/testUTF8.cxx index fb5f3d8153..c99c46db5e 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 |