diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-03-13 15:25:11 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-03-13 15:25:11 (GMT) |
commit | 809b32fe59ee9923eebbcfc373d9eaab158083e9 (patch) | |
tree | cbb36213252d97bf3f7d21b301b4f65aa7a5342c /Source/cmDirectory.cxx | |
parent | 83a0759e479ee0718296a1bb8f6fb26e1b13500a (diff) | |
download | CMake-809b32fe59ee9923eebbcfc373d9eaab158083e9.zip CMake-809b32fe59ee9923eebbcfc373d9eaab158083e9.tar.gz CMake-809b32fe59ee9923eebbcfc373d9eaab158083e9.tar.bz2 |
ENH: remove several compiler warnings
Diffstat (limited to 'Source/cmDirectory.cxx')
-rw-r--r-- | Source/cmDirectory.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmDirectory.cxx b/Source/cmDirectory.cxx index c8691a5..9b4d03b 100644 --- a/Source/cmDirectory.cxx +++ b/Source/cmDirectory.cxx @@ -39,7 +39,7 @@ cmDirectory ::Load(const char* name) { char* buf; - int n = strlen(name); + size_t n = strlen(name); if ( name[n - 1] == '/' ) { buf = new char[n + 1 + 1]; @@ -53,7 +53,7 @@ cmDirectory struct _finddata_t data; // data of current file // Now put them into the file array - long srchHandle = _findfirst(buf, &data); + size_t srchHandle = _findfirst(buf, &data); delete [] buf; if ( srchHandle == -1 ) @@ -109,7 +109,7 @@ cmDirectory */ const char* cmDirectory -::GetFile(unsigned int index) +::GetFile(size_t index) { if ( index >= m_Files.size() ) { |