mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-25 10:18:34 -06:00
use static_cast<> for casts from void*
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user