summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/SystemTools.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/kwsys/SystemTools.cxx')
-rw-r--r--Source/kwsys/SystemTools.cxx4
1 files changed, 2 insertions, 2 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)
{