COMP: fix some warnings

This commit is contained in:
Sebastien Barre 2005-03-11 09:31:58 -05:00
parent 63cd6e39e1
commit c8772c286e
2 changed files with 3 additions and 3 deletions

View File

@ -1405,7 +1405,7 @@ unsigned long SystemTools::FileLength(const char* filename)
} }
else 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, bool SystemTools::FileHasSignature(const char *filename,
const char *signature, const char *signature,
unsigned long offset) long offset)
{ {
if (!filename || !signature) if (!filename || !signature)
{ {

View File

@ -268,7 +268,7 @@ public:
static kwsys_stl::string GetCurrentWorkingDirectory(); static kwsys_stl::string GetCurrentWorkingDirectory();
///! return true if the file has a given signature (first set of bytes) ///! 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'. * Try to locate the file 'filename' in the directory 'dir'.