summaryrefslogtreecommitdiffstats
path: root/Source/cmTryCompileCommand.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2003-06-27 12:46:00 (GMT)
committerKen Martin <ken.martin@kitware.com>2003-06-27 12:46:00 (GMT)
commitbab4bcb5707d99db18febcbf3746a191a7f9c9ec (patch)
tree3d896ae2100b4f477238228e1b339b0e1893b87a /Source/cmTryCompileCommand.cxx
parent7456fc360e97a71e001ea55f0f130a41c58642d2 (diff)
downloadCMake-bab4bcb5707d99db18febcbf3746a191a7f9c9ec.zip
CMake-bab4bcb5707d99db18febcbf3746a191a7f9c9ec.tar.gz
CMake-bab4bcb5707d99db18febcbf3746a191a7f9c9ec.tar.bz2
fix compiler warnings
Diffstat (limited to 'Source/cmTryCompileCommand.cxx')
-rw-r--r--Source/cmTryCompileCommand.cxx6
1 files changed, 3 insertions, 3 deletions
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());