diff options
-rw-r--r-- | Source/cmAuxSourceDirectoryCommand.cxx | 2 | ||||
-rw-r--r-- | Source/cmTryCompileCommand.cxx | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmAuxSourceDirectoryCommand.cxx b/Source/cmAuxSourceDirectoryCommand.cxx index e8d11e2..8829da6 100644 --- a/Source/cmAuxSourceDirectoryCommand.cxx +++ b/Source/cmAuxSourceDirectoryCommand.cxx @@ -49,7 +49,7 @@ bool cmAuxSourceDirectoryCommand::InitialPass(std::vector<std::string> const& ar size_t numfiles = dir.GetNumberOfFiles(); for(size_t i =0; i < numfiles; ++i) { - std::string file = dir.GetFile(i); + std::string file = dir.GetFile(static_cast<unsigned long>(i)); // Split the filename into base and extension std::string::size_type dotpos = file.rfind("."); if( dotpos != std::string::npos ) diff --git a/Source/cmTryCompileCommand.cxx b/Source/cmTryCompileCommand.cxx index 107e0c9..d786717 100644 --- a/Source/cmTryCompileCommand.cxx +++ b/Source/cmTryCompileCommand.cxx @@ -270,12 +270,12 @@ void cmTryCompileCommand::CleanupFiles(const char* binDir) size_t fileNum; for (fileNum = 0; fileNum < dir.GetNumberOfFiles(); ++fileNum) { - if (strcmp(dir.GetFile(fileNum),".") && - strcmp(dir.GetFile(fileNum),"..")) + if (strcmp(dir.GetFile(static_cast<unsigned long>(fileNum)),".") && + strcmp(dir.GetFile(static_cast<unsigned long>(fileNum)),"..")) { std::string fullPath = binDir; fullPath += "/"; - fullPath += dir.GetFile(fileNum); + fullPath += dir.GetFile(static_cast<unsigned long>(fileNum)); if(cmSystemTools::FileIsDirectory(fullPath.c_str())) { cmTryCompileCommand::CleanupFiles(fullPath.c_str()); |