diff options
author | Rolf Eike Beer <eike@sf-mail.de> | 2017-09-01 18:50:00 (GMT) |
---|---|---|
committer | Rolf Eike Beer <eike@sf-mail.de> | 2017-09-01 18:50:00 (GMT) |
commit | 353ec237376d940e975bfbe0d982ebeddd21fc29 (patch) | |
tree | 3ca0a2c33f37b9aacf4433ceaa09c6fa5444e23b /Source/cmLoadCommandCommand.cxx | |
parent | 671cc7490ca1dd732cbb3671d4732eb1ee1e180e (diff) | |
download | CMake-353ec237376d940e975bfbe0d982ebeddd21fc29.zip CMake-353ec237376d940e975bfbe0d982ebeddd21fc29.tar.gz CMake-353ec237376d940e975bfbe0d982ebeddd21fc29.tar.bz2 |
use static_cast<> for casts from void*
Diffstat (limited to 'Source/cmLoadCommandCommand.cxx')
-rw-r--r-- | Source/cmLoadCommandCommand.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmLoadCommandCommand.cxx b/Source/cmLoadCommandCommand.cxx index 5ce48e3..a871df9 100644 --- a/Source/cmLoadCommandCommand.cxx +++ b/Source/cmLoadCommandCommand.cxx @@ -120,7 +120,7 @@ bool cmLoadedCommand::InitialPass(std::vector<std::string> const& args, int argc = static_cast<int>(args.size()); char** argv = nullptr; if (argc) { - argv = reinterpret_cast<char**>(malloc(argc * sizeof(char*))); + argv = static_cast<char**>(malloc(argc * sizeof(char*))); } int i; for (i = 0; i < argc; ++i) { |