summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorSebastien Barre <sebastien.barre@kitware.com>2005-03-11 14:31:58 (GMT)
committerSebastien Barre <sebastien.barre@kitware.com>2005-03-11 14:31:58 (GMT)
commitc8772c286e20d0767828cf9a5997cee5af27f857 (patch)
tree9d471133dd7bb0c79b86eee024ce447a7b2656c5 /Source
parent63cd6e39e105fc111974566aa00025f4d8755b70 (diff)
downloadCMake-c8772c286e20d0767828cf9a5997cee5af27f857.zip
CMake-c8772c286e20d0767828cf9a5997cee5af27f857.tar.gz
CMake-c8772c286e20d0767828cf9a5997cee5af27f857.tar.bz2
COMP: fix some warnings
Diffstat (limited to 'Source')
-rw-r--r--Source/kwsys/SystemTools.cxx4
-rw-r--r--Source/kwsys/SystemTools.hxx.in2
2 files changed, 3 insertions, 3 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx
index 62401a0..36b739f 100644
--- a/Source/kwsys/SystemTools.cxx
+++ b/Source/kwsys/SystemTools.cxx
@@ -1405,7 +1405,7 @@ unsigned long SystemTools::FileLength(const char* filename)
}
else
{
- return fs.st_size;
+ return static_cast<unsigned long>(fs.st_size);
}
}
@@ -2310,7 +2310,7 @@ SystemTools::GetFilenameWithoutLastExtension(const kwsys_stl::string& filename)
bool SystemTools::FileHasSignature(const char *filename,
const char *signature,
- unsigned long offset)
+ long offset)
{
if (!filename || !signature)
{
diff --git a/Source/kwsys/SystemTools.hxx.in b/Source/kwsys/SystemTools.hxx.in
index 2a06f6d..8549759 100644
--- a/Source/kwsys/SystemTools.hxx.in
+++ b/Source/kwsys/SystemTools.hxx.in
@@ -268,7 +268,7 @@ public:
static kwsys_stl::string GetCurrentWorkingDirectory();
///! return true if the file has a given signature (first set of bytes)
- static bool FileHasSignature(const char* filename, const char *signature, unsigned long offset = 0);
+ static bool FileHasSignature(const char* filename, const char *signature, long offset = 0);
/**
* Try to locate the file 'filename' in the directory 'dir'.