diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2003-08-17 16:24:06 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2003-08-17 16:24:06 (GMT) |
commit | 3935711e011c1c7a512b61af0f6e86659a4a8ee8 (patch) | |
tree | 552b47f9cf6c55db20684a18108ef09f6f30f557 /Source/kwsys | |
parent | 0bdfbc72a8255da79645f7ccd4209ea090fe9222 (diff) | |
download | CMake-3935711e011c1c7a512b61af0f6e86659a4a8ee8.zip CMake-3935711e011c1c7a512b61af0f6e86659a4a8ee8.tar.gz CMake-3935711e011c1c7a512b61af0f6e86659a4a8ee8.tar.bz2 |
ENH: remove warning and unneeded cast
Diffstat (limited to 'Source/kwsys')
-rw-r--r-- | Source/kwsys/SystemTools.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx index 91dc4bb..69523e1 100644 --- a/Source/kwsys/SystemTools.cxx +++ b/Source/kwsys/SystemTools.cxx @@ -970,17 +970,15 @@ unsigned long SystemTools::FileLength(const char* filename) int SystemTools::Strucmp(const char *s1, const char *s2) { -// return strcasecmp(s1,s2); -// // lifted from Graphvis http://www.graphviz.org while ((*s1 != '\0') - && (tolower(*(unsigned char *)s1) == tolower(*(unsigned char *)s2))) + && (tolower(*s1) == tolower(*s2))) { s1++; s2++; } - return tolower(*(unsigned char *) s1) - tolower(*(unsigned char *) s2); + return tolower(*s1) - tolower(*s2); } |